Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

potry does not install python #952

Closed
3 tasks done
magnusja opened this issue Mar 11, 2019 · 3 comments
Closed
3 tasks done

potry does not install python #952

magnusja opened this issue Mar 11, 2019 · 3 comments

Comments

@magnusja
Copy link

  • I am on the latest Poetry version.
  • I have searched the issues of this repo and believe that this is not a duplicate.
  • If an exception occurs when executing a command, I executed it again in debug mode (-vvv option).
  • OS version and name: ArchLinux
  • Poetry version: 0.12.11
  • Link of a Gist with the contents of your pyproject.toml file: not important I believe

Issue

$ poetry install -vvvvv
                                                                              
[RuntimeError]                                                 
The current Python version (3.7.2) is not supported by the project (3.6.6)  
Please activate a compatible Python version.                                
                                                                              
Exception trace:
 /usr/lib/poetry/poetry/_vendor/py3.7/cleo/application.py in run() at line 94
   status_code = self.do_run(input_, output_)
 /usr/lib/poetry/poetry/console/application.py in do_run() at line 88
   return super(Application, self).do_run(i, o)
 /usr/lib/poetry/poetry/_vendor/py3.7/cleo/application.py in do_run() at line 197
   status_code = command.run(input_, output_)
 /usr/lib/poetry/poetry/console/commands/command.py in run() at line 77
   return super(BaseCommand, self).run(i, o)
 /usr/lib/poetry/poetry/_vendor/py3.7/cleo/commands/base_command.py in run() at line 136
   self.initialize(input_, output_)
 /usr/lib/poetry/poetry/console/commands/env_command.py in initialize() at line 28
   current_python, self.poetry.package.python_versions

install [--no-dev] [--dry-run] [-E|--extras EXTRAS] [--develop DEVELOP]

Why isn't poetry just fetching a compatible python version, installing it locallz and then installing dependencies instead of forcing me to handle this?

@itsthejoker
Copy link

That's not what poetry is for. Use pyenv, pacman, or compile it yourself to install the appropriate python version.

@magnusja
Copy link
Author

magnusja commented Mar 12, 2019

Ok I see, would be quite handy though imho.

Would it be possible to make pyenv available to poetry, so that it finds all available versions and picks the correct one?

Copy link

github-actions bot commented Mar 3, 2024

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 3, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants