I am trying to use virtualenv for testing purposes. Unfortunately i have run into a bit of a wall,
when i try to pip install my app from the internal pypi server it fails. I think this is because virtualenv is using its own pip instead of the global one.
How can i get it to use the global pip?
this is what i am doing:
virtualenv ENV
source ENV/bin/activate
pip install django <---- this works
pip install django-tyrell <---- this cant be found
this is the output
[localhost] run: pip install django-tyrell
[localhost] out: Downloading/unpacking django-tyrell
[localhost] out: Could not find any downloads that satisfy the requirement django-tyrell
[localhost] out: No distributions at all found for django-tyrell
[localhost] out: Storing complete log in /tmp/tmpGLJUzf
[localhost] out:
Fatal error: run() received nonzero return code 1 while executing!
Requested: pip install django-tyrell
Executed: /bin/bash -l -c "cd fabrics && source ENV/bin/activate && pip install django-tyrell"
One solution that comes to mind is to run pip with full path to it, like:
Example assumes your global
pipis in/usr/bin.To add on your 2nd question in comment – no, you can’t avoid installing
pipwithvirtualenv:From what you can see,
install_pip()is called regardless.