-
Notifications
You must be signed in to change notification settings - Fork 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
~/.pip/pip.conf and virtualenv conflict #2081
Comments
My current fix is to set |
This issue is still present. In my case, I'd like to use Two possible solutions (of which only the first one can really be implemented by pip, but I may as well start the discussion here) are
|
Issue still present in Python 3.5.3. It's pretty ironic and frustrating that if one tries to be careful with the environment, to the point of using virtual environments and user installs in pip.conf, one ends with a non-working system. I was trying to avoid having team members use |
Isn't this a bug in |
Can someone please provide clear instructions on how to reproduce this? |
|
You should no longer need to set Since pip 20.0, if the global site-packages are not-writable, pip will automatically use the user site-packages. This won't make |
Given that no one has reported wanting to set this flag since pip 20.0 was released, I'm gonna go ahead and say that this is resolved. |
I couldn't find this issue documented anywhere, but if you specify
install-option
in~/.pip/pip.conf
, it is not overriden byvirtualenv
. I specify--prefix=/path/to/somwhere
ininstall-option
due to user restrictions on my work pc, and with it set, any installs in a venv (with$PIP_RESPECT_VIRTUALENV
enabled) still install in the path specified byinstall-option
. This was not an expected behavior for me, but I'm not sure if ignoringpip.conf
is the correct course of action either. Perhaps documenting such behavior is best. Another odd thing is that you then cannot uninstall while in the virtualenv, as the package is not installed in the venv, and pip cannot find it.This happened to me when using pip 1.4.1 and 1.5.6 and virtualenv 1.11.6.
The text was updated successfully, but these errors were encountered: