pip install error: cannot import name 'unpack_url'

pip install error: cannot import name 'unpack_url'

我在 Windows 8.1 机器上使用 Python 3.4.1 64 位。 Pip 最近一直给我带来问题,特别是这个错误:

C:\Users\Charlie\Desktop>pip install wxPython_Phoenix-3.0.3.dev78341-cp34-none-w
in_amd64.whl
Traceback (most recent call last):
  File "C:\Python34\Scripts\pip-script.py", line 9, in <module>
    load_entry_point('Scipy-stack==14.8.27', 'console_scripts', 'pip')()
  File "C:\Python34\lib\site-packages\pkg_resources\__init__.py", line 519, in l
oad_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "C:\Python34\lib\site-packages\pkg_resources\__init__.py", line 2630, in
load_entry_point
    return ep.load()
  File "C:\Python34\lib\site-packages\pkg_resources\__init__.py", line 2310, in
load
    return self.resolve()
  File "C:\Python34\lib\site-packages\pkg_resources\__init__.py", line 2316, in
resolve
    module = __import__(self.module_name, fromlist=['__name__'], level=0)
  File "C:\Python34\lib\site-packages\pip\__init__.py", line 13, in <module>
    from pip.commands import commands, get_summaries, get_similar_commands
  File "C:\Python34\lib\site-packages\pip\commands\__init__.py", line 6, in <mod
ule>
    from pip.commands.bundle import BundleCommand
  File "C:\Python34\lib\site-packages\pip\commands\bundle.py", line 6, in <modul
e>
    from pip.commands.install import InstallCommand
  File "C:\Python34\lib\site-packages\pip\commands\install.py", line 5, in <modu
le>
    from pip.req import InstallRequirement, RequirementSet, parse_requirements
  File "C:\Python34\lib\site-packages\pip\req\__init__.py", line 4, in <module>
    from .req_set import RequirementSet, Requirements
  File "C:\Python34\lib\site-packages\pip\req\req_set.py", line 9, in <module>
    from pip.download import (url_to_path, unpack_url)
ImportError: cannot import name 'unpack_url'

每次我尝试安装任何软件包时都会出现这种情况。以前有人遇到过这个问题吗?

嗯,显然 pip 有错误,unpack_url 可能用于从 PyPi 下载包。我建议通过执行 this 脚本重新安装。

我用过:easy_install -U pip 问题已解决