-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
pip error in virtualenv with python 3.9 and base python 3.10 #2560
Comments
This was an issue with pip 23.1. If you upgrade to pip 23.1.2 as the message suggests, the error will be fixed. (You may need to recreate the environment as the bug means that upgrading probably won't work 🙁) |
Thanks for the answer @pfmoore Indeed, if I create the environment with the following command it works. >python -m virtualenv -p py39 --pip 23.1.2 test However, in real life, I actually use tox, and I do not know how I can force tox to create virtualenvs with the --pip flag. So at the end it is probably just a matter of time, until a new version of virtualenv uses pip 23.1.2 or higher by default. |
@szleb you should be able to set the required packages and versions via https://tox.wiki/en/latest/config.html#requires |
@jugmac00 that does not change the version wihin the testenvironments only in environment creating the virtualenvs, and changing the deps of the testinvornments requires a working pip version.... |
Signed-off-by: Bernát Gábor <bgabor8@bloomberg.net>
Issue
When creating a virtualenv with version 20.21.1 or higher with python 3.9, calling pip in the virtualenv raises the following error:
The error does not appear when using python 3.10 in the virtualenv, i.e. when removing the
-p py39
in the example below.Example
Environment
system environment
The text was updated successfully, but these errors were encountered: