将此添加到.bash_profile
export PATH=/usr/local/bin:$PATH
然后得到:
$ which -a python/usr/local/bin/python/usr/bin/python/usr/local/bin/python$ pythonPython 2.7.6 (default, Dec 27 2013, 14:07:24) [GCC 4.2.1 Compatible Apple LLVM 5.0 (clang-500.2.79)] on darwinType "help", "copyright", "credits" or "license" for more information.>>> import httplib2>>>
无法肯定地说为什么
pip安装
/usr/local而不是系统默认版本,但是现在它们相同,因此现在可以正常使用。



