虽然路径上的 pip 指向brew版本:
08:01:40/shared $which pip
/usr/local/Cellar/python/2.7.8_2/bin/pip
使用pip时,似乎是调用系统版本:
22:54:40 / shared $ pip install matplotlib
要求已经满足 (使用--upgrade升级):matplotlib in /usr/local/lib/python2.7/site-packages 清理......
该位置适用于系统python。 brew是否与系统共享相同的位置(我猜不会)?
这里要求的更新是路径:
$ echo $ PATH /Users/steve/Applications:/shared/sfk:/Library/Java/JavaVirtualMachines/jdk1.7.0_25.jdk/Contents/Home/bin: /usr/local/mysql/bin:/shared/bin:.:/usr/local/Cellar/python/2.7.8_2/bin:/shared/maven3/bin: /shared/jruby/bin:/shared/scala/bin:/usr/local/Cellar/hadoop/2.6.0/bin: /usr/local/Cellar/hadoop/2.6.0/sbin:/shared/hbase-0.98.8-hadoop2/bin: /shared/ruby-1.8.7/bin:/shared::/ sbin目录:/ usr / sbin目录:在/ usr / bin中:在/ usr / local / bin中:/ bin中