-
-
Notifications
You must be signed in to change notification settings - Fork 31.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
PEP 668: Moving a VENV breaks it as its path variable is hard coded and absolute. #130810
Comments
You reported this to the distro here: linuxmint/cinnamon#12765 That's where the message needs to be changed, so I'm not clear what you expect to happen here. As I said on the pip tracker, moving a virtual environment documented as something you shouldn't do, so ultimately your problem is user error. There's no documentation issue I can see, as "don't move virtual environments" is already documented. |
This is not about the error message, it's about python3.12/README.venv Moving a venv as a common reason for an error occurring should be documented regardless. |
This is what I see at /usr/share/doc/python3.12
|
This is part of Debian-packaged python, not maintained by CPython. |
Documentation
This message is provided by my distro, Linux Mint. That's not your problem and that's reported here linuxmint/cinnamon#12765
When I went to your documentation, nothing included that this is usually caused by moving a venv file around.
Something like this could be added: "this error can be caused by moving the venv file around as the PATH is looking for it in its old location. Please run ''echo $PATH
and
which pip`` to confirm. Here is how to fix this!"Nothing in
/usr/share/doc/python3.12/README.venv
includes anything on thisAdditional Context
pypa/pip#13259 (comment)
pypa/virtualenv#2854
The text was updated successfully, but these errors were encountered: