Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

mac os zsh: command not found: pip [duplicate]

Tags:

python

pip

I'm learning python and some article tell me that I should use pip, but when I trying to install pip success, it tells me

zsh: command not found: pip

this is my python

➜  ~ git:(master) ✗ which -a python
/usr/bin/python

python version

➜  ~ git:(master) ✗ python --version
Python 3.5.0

User configuration

.zshrc

export PATH="/Library/Frameworks/Python.framework/Versions/3.5/bin:/Users/hedongfang/.rvm/gems/ruby-2.0.0-p643/bin:/Users/hedongfang/.rvm/gems/ruby-2.0.0-p643@global/bin:/Users/hedongfang/.rvm/rubies/ruby-2.0.0-p643/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Users/hedongfang/.rvm/bin:/System/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages"
export MANPATH="/usr/local/man:$MANPATH"

I'm new in python, so if you want anything else,please tell me.

like image 918
hexiaoyi Avatar asked Mar 21 '17 14:03

hexiaoyi


People also ask

Why pip is not working in Terminal Mac?

Sometimes when you are installing packages, you might face the error: pip: command not found . This error could be due to the following reasons: Pip is not installed. Pip is installed, but it is not compatible with the current environment.

How do I use pip on Mac terminal?

In the Terminal, type python3 -m pip install –upgrade pip and press Enter. Wait for the command to complete. If the latest version is installed, PIP will return a requirement already satisfied message. To check if the update was successful, type pip –version and press Enter.

How do you check pip is installed or not on Mac?

Checking for pip on OS X The output of pip --version tells you which version of pip is currently installed, and which version of Python it's set up to install packages for. This is especially helpful if you have more than one version of Python installed on your system.


Video Answer


1 Answers

If you are in MAC OS X you could try: sudo easy_install pip

pip does not come native with MAC OS.

like image 86
Marco Avatar answered Oct 08 '22 20:10

Marco