-
-
Notifications
You must be signed in to change notification settings - Fork 31.2k
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
venv can't figure out that it's isolated #127025
Comments
What's the pip command you used for doing the package installation? |
Something like |
Best way to test where the problem is would be to put a file in the virtual environment's I would also launch pip via But based on what your
Virtual environments are not portable, so that wouldn't be useful. |
Just tried, the same error as I shown.
I think I should move or duplicate this issue to pip since packages and venv working as intended. |
Bug report
Bug description:
I installed python3.13 on my Macbook Pro M1 using Homebrew.
I create venv, activate it and trying to install package. But I'm getting this error:
ERROR: Can not perform a '--user' install. User site-packages are not visible in this virtualenv.
I figured out that I can force pip to think that it's isolated. I just added following line in venv/bin/pip3:
It worked.
I don't know exactly where is problem: in pip or in venv. But in latest pip version there is the same error, so maybe it's not pip, idk. Or maybe I did something wrong, or maybe homebrew package is broken, idk.
As I remember, in python3.12 that I also installed using Homebrew there was no such error, everything worked out of box perfectly.
CPython versions tested on:
3.13
Operating systems tested on:
macOS
The text was updated successfully, but these errors were encountered: