-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Poetry does not use pyenv virtualenvs #5956
Comments
I also installed the current 1.2.0b2 version and set the new experimental option:
But even with that, it sticks on creating own environments. |
Hello @simonmeggle, I've never used fin swimmer |
I can't quite agree with that. Even if I explicitly tell poetry to use the environment...
...it doesn't work. According to the release notes of 1.2.0b1 ("Added experimental option virtualenvs.prefer-active-python to detect current activated python") it should work exactly like this. ...or have I misunderstood something? |
This looks as though it is duplicating #5947: that one claims that if you set (If they are indeed duplicates, this one is clearer so probably better to close the other) |
OK, seems to be related to pyenv-virtualenv. See this issue: |
Consider using the the Poetry Preview Release 1.2.0b1 with config prefer-active-python as described here. |
Please see this issue at pyenv-virtualenv where I am already using version The setting |
This is not a Poetry issue / the root cause has been identified -- when you Whether or not this is desirable can be revisited at a later date, but for now this is the expected and documented behavior and |
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. |
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: Mac OS arm64 (M1)
Poetry version: 1.1.13
Issue
I have installed poetry with
curl -sSL https://install.python-poetry.org | python3 -
and it is located in/Users/simon/.poetry/bin/poetry
.I want poetry to install the dependencies into the current virtual environment.
My poetry config:
My pyproject.toml:
And here we are. All the blogs and tutorials I have read so far tell me that poetry should use the currently active venv.
But instead, it creates another virtualenv in
/Users/simon/Library/Caches/pypoetry/virtualenvs/
.I also discovered the fact that poetry installed by Homebrew does not work because it has a hardcoded Python3.9 interpreter.
Poetry is now installed as recommended - but it does not want to play with pyenv's virtualenvs.
Any clue what is wrong here?
Thanks & regards,
Simon
The text was updated successfully, but these errors were encountered: