Question

I've installed python-virtualenv and python-virtualenvwrapper, and created a virtual environment by using mkvirtualenv NAME, and then activated it through workon NAME. By looking in ~/.virtualenvs/NAME/bin I see that pip is installed there.

However, when I try and install anything through pip, I'm told pip-python: command not found

I have not installed pip system wide, and was under the impression that I did not need to, given that it was already installed inside the virtual environment. Now, all this leads me to believe that something is not being set correctly with my $PATH, what could that be though? Once I'm in side the virtual environment as such: (NAME)[user@host]$ shouldn't my path already be modified to use the pip installation inside that environment? What do I need to do to make this so?

Was it helpful?

Solution

pip-python is the name of the executable in some Linux distributions. It is on my Fedora machine.

When pip is installed in a virtualenv, the name of the executable is simply pip, not pip-python. So you need to execute it with ~/.virtualenvs/NAME/bin/pip, not ~/.virtualenvs/NAME/bin/pip-python.

OTHER TIPS

You must install pip on you system to make it accessible in virtualenv.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top