简体   繁体   中英

Installing pip on windows 8.1(python 3.0.1)

I trying to install python pip on Windows 8.1. I have get-pip.py on my desktop.

In command prompt i use:

cd Desktop
python get-pip.py

And occur something wrong.

C:\\Users\\anonymouse>cd Desktop

C:\\Users\\anonymouse\\Desktop>python get-pip.py Traceback (most recent call last): File "c:\\users\\anonym~1\\appdata\\local\\temp\\tmpnd3wja\\pip.zip\\pip_vendor__ini t__.py", line 72, in load_module File "c:\\users\\anonym~1\\appdata\\local\\temp\\tmpnd3wja\\pip.zip\\pip_vendor\\reque sts__init__.py", line 58, in File "c:\\users\\anonym~1\\appdata\\local\\temp\\tmpnd3wja\\pip.zip\\pip_vendor\\reque sts\\utils.py", line 26, in File "c:\\users\\anonym~1\\appdata\\local\\temp\\tmpnd3wja\\pip.zip\\pip_vendor\\reque sts\\compat.py", line 56, in ImportError: cannot import name OrderedDict

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "c:\\users\\anonym~1\\appdata\\local\\temp\\tmpnd3wja\\pip.zip\\pip_vendor__ini t__.py", line 89, in load_module ImportError: No module named requests

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "get-pip.py", line 17853, in main() File "get-pip.py", line 152, in main bootstrap(tmpdir=tmpdir) File "get-pip.py", line 82, in bootstrap import pip File "c:\\users\\anonym~1\\appdata\\local\\temp\\tmpnd3wja\\pip.zip\\pip__init__.py", line 15, in File "c:\\users\\anonym~1\\appdata\\local\\temp\\tmpnd3wja\\pip.zip\\pip\\vcs\\mercurial .py", line 10, in File "c:\\users\\anonym~1\\appdata\\local\\temp\\tmpnd3wja\\pip.zip\\pip\\download.py", line 32, in File "c:\\users\\anonym~1\\appdata\\local\\temp\\tmpnd3wja\\pip.zip\\pip_vendor__ini t__.py", line 92, in load_module ImportError: No module named 'pip._vendor.requests'

In my PATH environment I have:

C:\Windows\System32;C:\Python30;C:\Python30\python.exe;C:\Python30\Lib\site-packages;C:\Python30\Lib\site-packages\django\bin\;C:\Python30\Scripts\;

Any ideas? Thanks.

As the docs say:

pip works with CPython versions 2.6, 2.7, 3.2, 3.3, 3.4 and also pypy.

Notice that 3.0 is not included.

In fact, very little works with 3.0. There are many, many things that don't work, or work badly, with 3.0, and there's basically no support for it.

The easy fix here is to upgrade to 3.2 or later—especially if you can upgrade to 3.4, which includes a pip bootstrap out of the box.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM