You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
poetry was added to ~/Library/Python/3.9/bin, which I thought was odd, but no complaints as long as it works:
➜ poetry --version
Poetry version 1.1.12
Created a default project pyproject.toml via poetry init, just changed the python version constraint to
python = "^3.10,<3.11"
I leverage pyenv to switch between different versions of python, so I did just that:
➜ pyenv local 3.10.0
➜ python --version
Python 3.10.0
At this point, I'd expect poetry to rely on the locally activated python version. But it doesn't:
➜ poetry install -vvv
The currently activated Python version 3.9.9 is not supported by the project (^3.10,<3.11).
Trying to find and use a compatible version.
Trying python3
Using python3 (3.10.0)
Creating virtualenv test-5f6I1Ta7-py3.10 in /Users/pranas/Library/Caches/pypoetry/virtualenvs
Using virtualenv: /Users/pranas/Library/Caches/pypoetry/virtualenvs/test-5f6I1Ta7-py3.10
Updating dependencies
Resolving dependencies...
1: fact: test is 0.1.0
1: derived: test
1: selecting test (0.1.0)
1: Version solving took 0.002 seconds.
1: Tried 1 solutions.
Writing lock file
Finding the necessary packages for the current system
It claims that python v3.9.9 is activated, which is not true.
And the environment is wrong anyway:
➜ poetry env info
Virtualenv
Python: 3.9.9
Implementation: CPython
Path: NA
System
Platform: darwin
OS: posix
Python: /usr/local/opt/python@3.9/Frameworks/Python.framework/Versions/3.9
So, effectively, the appropriate python 3.10.0 is not accessible at all:
➜ poetry run python --version
The currently activated Python version 3.9.9 is not supported by the project (^3.10,<3.11).
Trying to find and use a compatible version.
Using python3 (3.10.0)
The virtual environment found in /usr/local/opt/python@3.9/Frameworks/Python.framework/Versions/3.9 seems to be broken.
Recreating virtualenv test-5f6I1Ta7-py3.10 in /Users/pranas/Library/Caches/pypoetry/virtualenvs/test-5f6I1Ta7-py3.10
Python 3.9.9
The text was updated successfully, but these errors were encountered:
-vvv
option).Issue
After a fresh install on macOS
poetry
was added to~/Library/Python/3.9/bin
, which I thought was odd, but no complaints as long as it works:Created a default project
pyproject.toml
viapoetry init
, just changed the python version constraint toI leverage
pyenv
to switch between different versions of python, so I did just that:At this point, I'd expect
poetry
to rely on the locally activated python version. But it doesn't:It claims that python v3.9.9 is activated, which is not true.
And the environment is wrong anyway:
So, effectively, the appropriate python 3.10.0 is not accessible at all:
The text was updated successfully, but these errors were encountered: