Get-pip.py is broken on Windows 10

Get Pip (Python file from Pypa.io ) on Windows 10 cannot be retrieved on my laptop. I followed all the instructions pypa.io - Installation , however, when I tried to execute the file, despite many attempts to fix it, it says:

ERROR: To modify pip, please run the following command: C:\Python27\python.exe -m pip  

So, I ran C:\Python27\python.exe -m pipand then displayed another error message:

C:\Python27\python.exe: No module named pip  

Then I consulted with my friend, and he said that the second error message is obviously not a file error, but (now I reflect) is quite logical. Of course, it says that there is no module called pip, because that is what I am trying to load. Then it occurred to me that Python should think that I already have this, because it asks me to change pip. So I looked into it and saw that I have a folder with pyramids, but inside it has nothing to do with Python.

So, it made me think, why is it not loading? or Why does he think I already have this?

+4
source share
3 answers

, , . Python 2.7.14 64-bit, pip get-pip.py, .

, :

python -m ensurepip --default-pip

pp. , Python pip.

, , :

python -m pip install --upgrade pip setuptools wheel

.

+4

Python Pip python.org.

pip.pypa.io, , Python , . , .

: , , .

0

. , () Python 2.7.8 32-.

https://pip.pypa.io/en/latest/installing/ ,

pip is already installed if you are using Python 2> = 2.7.9 or Python 3> = 3.4, downloaded from python.org

so my call python -m ensurepip --default-pipreally led to No module named ensurepip(since I am not using >=2.7.9).

However, I was finally able to run pip: instead of using get-pip.pyin https://bootstrap.pypa.io/get-pip.py I used https://bootstrap.pypa.io/2.6/get-pip.py .

For future reference and those who want to compare with any version get-pip.pyat https://github.com/pypa/get-pip :

29af88001263a19911c0911057cc192e  ./get-pip.py      did *not* work for me,
e4bd67ad4de5329bd4291e06ee3ba012  ./2.6/get-pip.py  *did* work for me.
0
source

Source: https://habr.com/ru/post/1696216/


All Articles