pip missing from bin in virtualenv

1.1k views Asked by At

pip is installing to global location rather than in the venv. I tried a lot of things but none worked. I found out that pip3 is missing from bin in my vienv. I have tried all of the below: pip installing in global site-packages instead of virtualenv and http://w3facility.org/question/pip-installing-in-global-site-packages-instead-of-virtualenv/ And many more...if you need i can paste more links. Please help.

2

There are 2 answers

0
Dušan Maďar On

Using a virtual environment with Python 3.4 provides helpful information about dealing with Python 3.x and virtualenv/pyevn.

Find instruction about how to install pip manually on pip.pypa.io.

0
Dave On

The Red Hat yum package of Python 3.4 is broken, with pip missing. Other Python 3.4+ distributions might have the same problem.

When you create a virtual environment with:

pyvenv-3.4 py3
source py3/bin/activate

the environment should include pip automatically (in the environment/bin directory, not globally). If it does not, try downloading the pip and setuptools wheels manually as described in https://stackoverflow.com/a/33767179/948866. It's a little more work up front than installing pip the old way, but it makes pyvenv work properly.