~/.pip/pip.conf and virtualenv conflict
See original GitHub issueI couldn’t find this issue documented anywhere, but if you specify install-option
in ~/.pip/pip.conf
, it is not overriden by virtualenv
. I specify --prefix=/path/to/somwhere
in install-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 by install-option
. This was not an expected behavior for me, but I’m not sure if ignoring pip.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.
Issue Analytics
- State:
- Created 9 years ago
- Reactions:2
- Comments:8 (5 by maintainers)
Top Results From Across the Web
pip.conf user = true conflicts with venv · Issue #8977 - GitHub
conf in order to install packages into a venv with pip. ... Add user = true to pip.conf (in ~/.config/pip/pip.conf on Ubuntu systems)...
Read more >Pip default behavior conflicts with virtualenv? - Stack Overflow
Open up $HOME/.pip/pip.conf with a text editor. If it does not exist (which is the case in my Manjaro machine), create it.
Read more >The one pip config you need to have - Waylon Walker
require-virtualenv. Pip is the pacakage tool for python. It installs third-party packages and is configurable. One of the configuration ...
Read more >Further Configuration of pip and Virtualenv
Requiring an active virtual environment for pip ¶. By now it should be clear that using virtual environments is a great way to...
Read more >Python Virtual Environments: A Primer
In this tutorial, you'll learn how to work with Python's venv module ... on your Python project without worrying about dependency conflicts.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
My current fix is to set
$PIP_CONFIG_FILE
to/dev/null
viavirtualenvwrapper
’spostactivate
hook and unsetting it inpostdeactivate
.Can someone please provide clear instructions on how to reproduce this?