我正在学习python,有些文章告诉我应该使用pip
,但是当我尝试安装pip成功时,它会告诉我
zsh: command not found: pip
这是我的python
➜ ~ git:(master) ✗ which -a python
/usr/bin/python
python版
➜ ~ 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"
我是python的新手,所以如果你还需要其他东西,请告诉我。
答案 0 :(得分:16)
如果你在MAC OS X中,你可以尝试:
sudo easy_install pip
pip不是MAC OS的原生。