安装期间出现python pip错误CalledProcessError

时间:2016-08-24 10:26:34

标签: install pip subprocess python-3.5

我在Windows 7上使用python3.5(32位)并安装了pip,但每次我想使用pip(也使用pip3和pip3.5)安装时会发生以下错误: (当我尝试使用wheel文件进​​行安装时也会发生这种情况)

Traceback (most recent call last):
  File "C:\Users\jmh\AppData\Local\Programs\Python\Python35-32\lib\runpy.py", li
ne 174, in _run_module_as_main
    mod_name, mod_spec, code = _get_module_details(mod_name, _Error)
  File "C:\Users\jmh\AppData\Local\Programs\Python\Python35-32\lib\runpy.py", li
ne 133, in _get_module_details
    return _get_module_details(pkg_main_name, error)
  File "C:\Users\jmh\AppData\Local\Programs\Python\Python35-32\lib\runpy.py", li
ne 109, in _get_module_details
    __import__(pkg_name)
  File "C:\Users\jmh\AppData\Local\Programs\Python\Python35-32\lib\site-packages
\pip-8.2.0.dev0-py3.5.egg\pip\__init__.py", line 16, in <module>
    from pip.vcs import git, mercurial, subversion, bazaar  # noqa
  File "C:\Users\jmh\AppData\Local\Programs\Python\Python35-32\lib\site-packages
\pip-8.2.0.dev0-py3.5.egg\pip\vcs\mercurial.py", line 9, in <module>
    from pip.download import path_to_url
  File "C:\Users\jmh\AppData\Local\Programs\Python\Python35-32\lib\site-packages
\pip-8.2.0.dev0-py3.5.egg\pip\download.py", line 40, in <module>
    from pip._vendor import distro
  File "C:\Users\jmh\AppData\Local\Programs\Python\Python35-32\lib\site-packages
\pip-8.2.0.dev0-py3.5.egg\pip\_vendor\distro.py", line 1040, in <module>
    _distroi = LinuxDistribution()
  File "C:\Users\jmh\AppData\Local\Programs\Python\Python35-32\lib\site-packages
\pip-8.2.0.dev0-py3.5.egg\pip\_vendor\distro.py", line 591, in __init__
    if include_lsb else {}
  File "C:\Users\jmh\AppData\Local\Programs\Python\Python35-32\lib\site-packages
\pip-8.2.0.dev0-py3.5.egg\pip\_vendor\distro.py", line 925, in _lsb_release_info

   raise subprocess.CalledProcessError(rc, cmd, err)
subprocess.CalledProcessError: Command 'lsb_release -a' returned non-zero exit s
tatus 1

我真的很感谢你的帮助,因为总是从源代码搜索二进制文件或构建软件包非常耗时,其他东西也可能出现等等。 提前谢谢!

0 个答案:

没有答案