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
.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.
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.
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.
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.
If you are in MAC OS X you could try:
sudo easy_install pip
pip does not come native with MAC OS.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With