在新外壳中:
brew install python
输出:
Warning: python-2.7.5 already installed
brew link python
输出:
Warning: Already linked: /usr/local/Cellar/python/2.7.5
To relink: brew unlink python && brew link python
echo $PATH
输出:
/Users/captbaritone/.rvm/gems/ruby-2.0.0-p0/bin:/Users/captbaritone/.rvm/gems/ruby-2.0.0-p0@global/bin:/Users/captbaritone/.rvm/rubies/ruby-2.0.0-p0/bin:/Users/captbaritone/.rvm/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/X11/bin:/usr/local/git/bin:/usr/local/MacGPG2/bin:/usr/texbin:/opt/local/bin
但which python
仍然输出:
/usr/local/bin/python
并且python --version
仍然输出:
Python 2.7.1
这是一个线索:
ls -l /usr/local/bin/python
输出:
ls: /usr/local/bin/python: No such file or directory
关于我可能做错了什么的任何想法,或者我还能尝试什么?