-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Upgrading from 23.0.1 to 23.1 causes 'User site-packages are not visible in this virtualenv' #11977
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
Comments
Why is pip trying to do a |
Can you run |
This seems similar to the same problem we ran into today with 23.1: installing things using github actions now fails. Weirdly, it claims that the pip module doesn't exist. From https://github.com/biosimulators/Biosimulators/actions/runs/4726006706/jobs/8385242346 :
EDIT: probably a simpler example: https://github.com/biosimulations/biomodels-qc/actions/runs/4641088733/jobs/8376894388
|
I get exactly the same error with 23.0.1 and 23.1. And it's what I expect - you cannot use But the behaviour you are seeing in 23.1 is correct, and is not a bug. @luciansmith the behaviour you describe is different. If you can produce a reproducible example, please raise a separate issue for it. |
23.0.1 (.venv) C:\sanbox\1src\idf\abi3_2\package>pip list pip 22.0.4 (.venv) C:\sanbox\1src\idf\abi3_2\package>python -m pip install --upgrade pip==23.0.1 (.venv) C:\sanbox\1src\idf\abi3_2\package>pip config list (.venv) C:\sanbox\1src\idf\abi3_2\package>pip install pytest Vs 23.1 C:\sanbox\1src\idf\abi3_2\package>pip list pip 23.1 C:\sanbox\1src\idf\abi3_2\package>python -m pip list pip 23.1 C:\sanbox\1src\idf\abi3_2\package>pip config list C:\sanbox\1src\idf\abi3_2\package>python -m venv .venv C:\sanbox\1src\idf\abi3_2\package>.venv\Scripts\activate (.venv) C:\sanbox\1src\idf\abi3_2\package>pip list pip 22.0.4 (.venv) C:\sanbox\1src\idf\abi3_2\package>python -m pip install --upgrade pip (.venv) C:\sanbox\1src\idf\abi3_2\package>pip install pytest (.venv) C:\sanbox\1src\idf\abi3_2\package>python -m pip install --upgrade pip==23.0.1 (.venv) C:\sanbox\1src\idf\abi3_2\package>pip config list (.venv) C:\sanbox\1src\idf\abi3_2\package>deactivate |
So in 23.1 you have a pip configuration setting Thanks for the confirmation. |
Also note that you can use |
Note that this may actually be #11982 - the |
Description
With pip 23.0.1 this worked
With pip 23.1
We've never had site-packages visible, something else has changed. The pyvenv.cfg has not changed.
Expected behavior
With pip 23.0.1 this worked. I reverted pip this morning and it still works with 23.0.1
pip version
23.1
Python version
3.9.13
OS
win11
How to Reproduce
This should work. Heck any pip install should work and not show the --user error.
Output
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: