-
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 (still) does not use active pyenv when creating virtual environment. Is it possible to write a documentation page about how to make this work? #7095
Comments
Hello @lhoupert, because using To debug this, we need a reproducible example. At best with docker container. fin swimmer |
Thanks @finswimmer for the quick reply. I edited my issue with a reproducible example. I am using MacOS, can you built a docker container based on a macosx image? |
Thanks, that makes your issue more clear 👍 Respecting the current activated python version on Until than you have to fix the |
Sorry I missed #7073 , I will watched this issue. Thank you for your work! |
I should add that if |
Hello @Mahdi-Hosseinali, this issue here is closed and solved. Please open a new one, which includes all necessary steps to reproduce your problem. fin swimmer |
I don't think this issue should actually be closed. I understand there is a separate issue for getting |
nonsense, if you take that example and change step 11 as you suggest then you don't even have a poetry project and so poetry will tell you that it can't find a pyproject.toml. whatever you are trying to report is not the same as what this issue reports. Anyway this issue is closed. If you think you have a new problem then raise a new issue - but please first search for actual duplicates eg #7075 sounds closer. |
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. |
Context
Hi, I am a new users of Poetry and I am working on establishing best practices for python software packaging in our team and I thought about starting introducing Poetry in our workflow. However I may stick to pip and
pyenv-virtualenv
for a little bit longer as it doesnt seem that poetry is compatible with pyenv.I think my issue is related to several issues about poetry not working as expected with
pyenv
such asIssue
poetry doesnt use the active terminal python version defined by
pyenv global 3.10.8
,pyenv local 3.10.8
orpyenv shell 3.10.8
, when creating a new project with the commandpoetry new projnew1
Reproductible example
Poetry
] with:curl -sSL https://install.python-poetry.org | python3 -
Restart the shell with
exec $SHELL
Test the installation by running:
returns
/Users/loic.houpert/.pyenv/versions/3.10.4/bin/python
poetry config virtualenvs.prefer-active-python true
project.toml
which returns the wrong python version:
Notes
poetry config virtualenvs.prefer-active-python false
orpoetry config virtualenvs.prefer-active-python true
before creating a new project.pyenv+poetry
worked in the past? If yes what poetry version was it?The text was updated successfully, but these errors were encountered: