pip Python 3.3 windows 7

时间:2014-06-20 22:33:01

标签: python pip

晚上好。

我试图在python 3.3(win7)上安装pip,一切看起来不错,但是控制台显示以下消息:

C:\Python33>pip
Traceback (most recent call last):
  File "<frozen importlib._bootstrap>", line 1519, in _find_and_load_unlocked
AttributeError: 'module' object has no attribute '__path__'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Python33\Scripts\pip-script.py", line 9, in <module>
    load_entry_point('pip==1.5.6', 'console_scripts', 'pip')()
  File "C:\Python33\pip.py", line 17466, in main
    bootstrap(tmpdir=tmpdir)
  File "C:\Python33\pip.py", line 17436, in bootstrap
    cert.write(pkgutil.get_data("pip._vendor.requests", "cacert.pem"))
  File "C:\Python33\lib\pkgutil.py", line 627, in get_data
    loader = get_loader(package)
  File "C:\Python33\lib\pkgutil.py", line 482, in get_loader
    return find_loader(fullname)
  File "C:\Python33\lib\pkgutil.py", line 499, in find_loader
    pkg = importlib.import_module(pkg_name)
  File "C:\Python33\lib\importlib\__init__.py", line 90, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1584, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1565, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1522, in _find_and_load_unlocked
ImportError: No module named 'pip._vendor'; pip is not a package

路径是固定的,然后我不知道错误

C:\Windows\System32>path
PATH=C:\Python33\Scripts;C:\Python33\;C:\Windows\system32;C:\Windows;C:\Windows\
System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)
\Intel\OpenCL SDK\3.0\bin\x86;C:\Program Files (x86)\Intel\OpenCL SDK\3.0\bin\x6
4;C:\Users\kamome\AppData\Local\Temp

你知道发生了什么吗? 感谢

1 个答案:

答案 0 :(得分:0)

Pip安装在脚本子文件夹Python33\Scripts\Pip.exe中,而不是在主python文件夹中。