当我尝试pip install -U PySide
Traceback (most recent call last):
File "C:\Python27\Lib\runpy.py", line 162, in _run_module_as_main
"__main__", fname, loader, pkg_name)
File "C:\Python27\Lib\runpy.py", line 72, in _run_code
exec code in run_globals
File "C:\Python27\Scripts\pip2.7.exe\__main__.py", line 9, in <module>
File "C:\Python27\pip.py", line 17466, in main
bootstrap(tmpdir=tmpdir)
File "C:\Python27\pip.py", line 17436, in bootstrap
cert.write(pkgutil.get_data("pip._vendor.requests", "cacert.pem"))
File "C:\Python27\Lib\pkgutil.py", line 570, in get_data
loader = get_loader(package)
File "C:\Python27\Lib\pkgutil.py", line 456, in get_loader
return find_loader(fullname)
File "C:\Python27\Lib\pkgutil.py", line 466, in find_loader
for importer in iter_importers(fullname):
File "C:\Python27\Lib\pkgutil.py", line 422, in iter_importers
__import__(pkg)
ImportError: No module named _vendor
简单地给出pip
命令会导致此错误。我的python相关环境变量设置正确,但没有运气。他们在这里
PYTHONHOME=C:\Python27
PYTHONPATH=C:\Python27\Lib
感谢任何帮助..