无法安装pip,因为每当我运行get-pip.py(python 2.7)

时间:2016-06-18 06:40:21

标签: python-2.7 pip

所以我正在运行Python 2.7.11并尝试安装pip。我认为pip已经安装在Python 2> = 2.7.9上,但我想我错了。每当我尝试运行get-pip.py时,我得到:

`Traceback (most recent call last):
  File "get-pip.py", line 19177, in <module>
    main()
  File "get-pip.py", line 194, in main
    bootstrap(tmpdir=tmpdir)
  File "get-pip.py", line 82, in bootstrap
    import pip
  File "c:\users\user\appdata\local\temp\tmp41xybl\pip.zip\pip\__init__.py", line 14, in <module>
  File "c:\users\user\appdata\local\temp\tmp41xybl\pip.zip\pip\utils\__init__.py", line 23, in <module>
  File "c:\users\user\appdata\local\temp\tmp41xybl\pip.zip\pip\locations.py", line 120, in <module>
  File "c:\users\user\appdata\local\temp\tmp41xybl\pip.zip\pip\utils\appdirs.py", line 150, in site_config_dirs
  File "c:\users\user\appdata\local\temp\tmp41xybl\pip.zip\pip\utils\appdirs.py", line 191, in _get_win_folder_from_registry
WindowsError: [Error 2] The system cannot find the file specified`

我真的不知道我做错了什么,网上没有任何有用的答案。有人可以帮我理解我需要做些什么来解决这个问题并安装pip吗?感谢。

0 个答案:

没有答案