ImportError:在Windows 7 32位中运行pip --version命令时无法导入名称main
我已经为32位Windows安装了与pip和setuptools捆绑在一起的最新python(2.7.9)。我尝试重新安装pip,但问题仍然存在。 这是pip --version在Administrator cmd中运行后的错误: Traceback (most recent call last): File "D:\Python\lib\runpy.py", line 162, in _run_module_as_main "__main__", fname, loader, pkg_name) File "D:\Python\lib\runpy.py", line 72, in _run_code exec code in run_globals File "D:\Python\Scripts\pip.exe\__main__.py", line 5, in <module> ImportError: cannot import name main