Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/313.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 无法安装服务\u标识模块_Python_Pip_Python Module - Fatal编程技术网

Python 无法安装服务\u标识模块

Python 无法安装服务\u标识模块,python,pip,python-module,Python,Pip,Python Module,当我尝试命令pip install service\u identity时,它返回以下错误 Downloading/unpacking service-identity Downloading service_identity-14.0.0-py2.py3-none-any.whl Cleaning up... Exception: Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/pip/

当我尝试命令
pip install service\u identity
时,它返回以下错误

Downloading/unpacking service-identity
  Downloading service_identity-14.0.0-py2.py3-none-any.whl
Cleaning up...
Exception:
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 122, in main
    status = self.run(options, args)
  File "/usr/lib/python2.7/dist-packages/pip/commands/install.py", line 278, in run
    requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)
  File "/usr/lib/python2.7/dist-packages/pip/req.py", line 1259, in prepare_files
    )[0]
IndexError: list index out of range

我也尝试过sudo,但返回了相同的错误。如何解决此问题?

您使用的是什么版本的pip?刚刚成功安装在我的机器上。您使用的是哪个版本的python、pip?我刚刚用
easy\u install
命令成功安装了它。非常感谢。all@AnonymousPlatypus,pip没有理由不这么做work@PadraicCunningham对不起,我不知道为什么:(