Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

bash: pip: command not found

I downloaded pip and ran python setup.py install and everything worked just fine. The very next step in the tutorial is to run pip install <lib you want> but before it even tries to find anything online I get an error "bash: pip: command not found".

This is on Mac OS X, which I'm new to, so I'm assuming there's some kind of path setting that was not set correctly when I ran setup.py. How can I investigate further? What do I need to check to get a better idea of the exact cause of the problem?

EDIT: I also tried installing Python 2.7 for Mac in the hopes that the friendly install process would do any housekeeping like editing PATH and whatever else needs to happen for everything to work according to the tutorials, but this didn't work. After installing, running 'python' still ran Python 2.6 and PATH was not updated.

like image 958
Trindaz Avatar asked Mar 20 '12 02:03

Trindaz


People also ask

Why is pip not found?

'pip' is not recognized as an internal or external command, operable program or batch file. Linux – If you have installed Python on a Linux environment, the pip does not come with Python, and you need to install pip package manager as a separate package.

How do I fix bash pip3 not found?

To Solve sudo: pip3: command not found Error Just use python3 -m pip and this solved my problem. Second solution is Just check pip installed or not with this command pip3 -V If pip is not installed then You would need to install pip3. For Linux Users sudo apt install python3-pip.


1 Answers

Why not just do sudo easy_install pip or if this is for python 2.6 sudo easy_install-2.6 pip?

This installs pip using the default python package installer system and saves you the hassle of manual set-up all at the same time.

This will allow you to then run the pip command for python package installation as it will be installed with the system python. I also recommend once you have pip using the virtualenv package and pattern. :)

like image 64
klobucar Avatar answered Oct 28 '22 15:10

klobucar