-
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 creates virtualenv with wrong version #5190
Comments
I don't want to create a nearly duplicate issue, but the issue I'm having is slightly different. If y'all prefer, I'll create a new issue. Issue:Running System
Steps to reproduce:
Short-term FixIf I use |
For me it's the same situation. Problem in general is that poetry shows that it's installing right version but in ➜ poetry install -E redis
The currently activated Python version 3.10.2 is not supported by the project (3.9.7).
Trying to find and use a compatible version.
Using python3 (3.9.7)
Creating virtualenv pro-test in /home/bugaj/Documents/git/pro-test/code/.venv
Installing dependencies from lock file After this in .venv python 3.10 is installed. |
I am getting the same inconsistent behavior - my current solution is to manually edit the virtual environment config poetry generates:
|
I think this a duplicate of #5077 (comment). |
@finswimmer I think You're right (the process that You described is exactly the way I got into this situation), so the problem is with the new installation script. For the record I tried old installation script but it has other bugs on my system (latest manjaro). One problem that I see is that I'm using |
Might be, but for my part I'd read that thread and comment and used the newer installation script after uninstalling the Poetry instance I'd installed using the older script. And this happens for whichever version of Python with which I install Poetry, so it shouldn't be a residual install issue. |
For me the problem seemed to be that by default 3.10 included a |
Yeah, this happens for me even with the latest beta. 🫤 |
Hey, this should now work correctly by setting fin swimmer |
It didn't solve the problem though. I specified python version to be ^3.9, but it created python 3.10.4 in the virtual env |
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. |
-vvv
option).Issue
I'm trying to constrain the python version within 3.9.x using:
I have a setup of
poetry
+pyenv
that has been working nicely so far, but poetry insists on usingPython 3.10
.It tells me that it's using
3.9.9
but it runs python3.10
. Somehow it creates the virtualenv with the wrong version.Pyenv has been set with
pyenv local 3.9.9
and seems to be working correctlyThings I've tried:
poetry env use 3.9.9
Thanks for the help!!
The text was updated successfully, but these errors were encountered: