安装ROS时没有名为'pip._vendor.cachecontrol'的模块

时间:2015-08-02 01:44:22

标签: macos installation pip homebrew ros

我正在按照OSX上的ROS的说明进行操作。当我输入命令pip --version时,我收到以下错误。这是我追随的http://codepen.io/anon/pen/LVMzxr?editors=101

Traceback (most recent call last):
  File "/usr/local/bin/pip", line 9, in <module>
    load_entry_point('pip==6.1.1', 'console_scripts', 'pip')()
  File "build/bdist.macosx-10.9-x86_64/egg/pkg_resources/__init__.py", line 552, in load_entry_point
  File "build/bdist.macosx-10.9-x86_64/egg/pkg_resources/__init__.py", line 2672, in load_entry_point
  File "build/bdist.macosx-10.9-x86_64/egg/pkg_resources/__init__.py", line 2345, in load
  File "build/bdist.macosx-10.9-x86_64/egg/pkg_resources/__init__.py", line 2351, in resolve
  File "/usr/local/lib/python2.7/site-packages/pip-6.1.1-py2.7.egg/pip/__init__.py", line 15, in <module>
    from pip.vcs import git, mercurial, subversion, bazaar  # noqa
  File "/usr/local/lib/python2.7/site-packages/pip-6.1.1-py2.7.egg/pip/vcs/mercurial.py", line 10, in <module>
    from pip.download import path_to_url
  File "/usr/local/lib/python2.7/site-packages/pip-6.1.1-py2.7.egg/pip/download.py", line 38, in <module>
    from pip._vendor.cachecontrol import CacheControlAdapter
  File "/usr/local/lib/python2.7/site-packages/pip-6.1.1-py2.7.egg/pip/_vendor/__init__.py", line 92, in load_module
    raise ImportError("No module named '%s'" % (name,))
ImportError: No module named 'pip._vendor.cachecontrol'

你知道我该如何解决这个问题?

1 个答案:

答案 0 :(得分:0)

我必须做以下工作才能让它工作:1)brew install openssl 2)brew unlink python 3)brew install python 4)sudo easy_install pip