Poetry: potry does not install python

Created on 11 Mar 2019  路  2Comments  路  Source: python-poetry/poetry

  • [X] I am on the latest Poetry version.
  • [X] I have searched the issues of this repo and believe that this is not a duplicate.
  • [X] 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?

Most helpful comment

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

All 2 comments

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

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?

Was this page helpful?
0 / 5 - 0 ratings