无法在 ubuntu 14.10 中安装 twilio python 模块,

无法在 ubuntu 14.10 中安装 twilio python 模块,

当我尝试通过以下方式在我的系统上安装 twilio 模块时......

anupam@JAZZ:~$ sudo pip install twilio
Traceback (most recent call last):
  File "/usr/local/bin/pip", line 5, in <module>
    from pkg_resources import load_entry_point
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2876, in <module>
    working_set = WorkingSet._build_master()
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 451, in _build_master
    return cls._build_from_requirements(__requires__)
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 464, in _build_from_requirements
    dists = ws.resolve(reqs, Environment())
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 639, in resolve
    raise DistributionNotFound(req)
pkg_resources.DistributionNotFound: pip==1.5.4

我没有收到错误,我该如何解决?

答案1

尝试以下命令

sudo easy_install pip==1.5.4

然后twilio安装

sudo pip install twilio

相关内容