-
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
Unable to create poetry environment with python3.10 #5431
Comments
I also had the same problem, I created a virtual environment using 我也遇到了相同的问题,我使用 My OS version is Ubuntu 22.04 lts |
Same issue for me with the "The virtual environment found seems to be broken" message with poetry version 1.2.0b3.dev0 (installed from git@master) and with python 3.10. Works perfectly fine with python 3.9. On Fedora 36. |
Same issue as above. I've completely uninstalled Poetry and reinstalled and done the same with Pyenv. Ubuntu 22.04 Details:Pyenv local python version:
In fact python 3.10.5 is not used and 3.10.4 is:
Manually setting the env python version fails also:
|
Issue 5190 appears to be a similar or duplicate issue and references a possible problem introduced in the new Poetry install script. Since I installed Poetry recently, this could indeed be true. One the second attempt to fix this, I uninstalled both pyenv and poetry, installed pyenv first, then poetry, but still experienced the issue. This may also be related to Issue 5077 which 5190 also references. |
Poetry Preview Release 1.2.0b1 addresses this issue:
Steps to get a working environment:
Now poetry will respect the pyenv activated python and workflow returns to normal:
See Docs: Managing environments for additional details. |
I tried uninstalling and reinstalling, but still encountering the same issue. I am not using pyenv, for the record. |
The new |
For me it worked again after purging poetry config files and reinstalling. |
I am on the latest Poetry version.
I have searched the issues of this repo and believe that this is not a duplicate.
OS version and name: Ubuntu 20.04.4 LTS
Poetry version: 1.1.13
Link of a Gist with the contents of your pyproject.toml file: https://gist.github.com/ethanabrooks/1ec5eada2e26f346b83eb46a4bdebc8b
Issue
I am unable to create a poetry environment with python3.10.
As you can see, there is no
bin/
directory under/home/ethanbro/.cache/pypoetry/virtualenvs/poetry-issue-wxXJaBmj-py3.10
.If I change my
pyproject.toml
topython3.9
and then runpoetry env use $(which python3.9)
, everything works fine (the virtualenv has abin
directory).The text was updated successfully, but these errors were encountered: