How to install PIP in Windows 10?

4

I am trying to install the PIP according to the Python documentation. It is installed, but it does not work.

This is always the case:

  

pip 'is not recognized as an internal or external command, a program   operable or a batch file.

How can I resolve this problem?

    
asked by anonymous 20.09.2017 / 18:54

6 answers

1

If Python is already in the environment variables, just do this:

python -m pip install -U nome_pacote

If you are not:

<pasta_onde_esta_instalado>\python.exe -m pip install -U nome_pacote
    
20.09.2017 / 19:06
1

You need to create a file somewhere (it can be on your desktop) with the name get-pip.py and put the code that is this link .

After saving the file, go to the directory of the file in your CMD and type:

python get-pip.py

This will install the pip on your computer.

    
20.09.2017 / 19:07
1

It is quite possible that you have installed Python into the C:\Programs and Files or C:\Programs and Files (x64) (or other folder without writing permission) folder, ie your user is not allowed to write to these folders right after you think who installed it is likely that something else has happened.

The ideal thing to do is to install it, perhaps in the root, or in your user's folder, first you will have to remove Python and then install again and change the location of the installation.

Another way to install, if that's what you want, is to install pip with elevated privileges

Run cmd as a Windows 7 Administrator

Open the start menu, and in the search field type cmd , when the cmd appears in the programs, right-click / mouse and select Executar como administrador

RuncmdasaWindows8and10administrator

  

Note:Inwin8itprobablyworks,inWin10Idonotknowifthisoptionappearsatall,maybeithasbeenreplacedbyPowerShell

Right-click/mouseontheStartMenuandselecttheoptionpromptdecomando(admin):

Windows10andpowershellasadministrator

MaybeyourWin10mightnothavethecommandpromptinthemenuitems,butpowershellisabletodothesameascmd(andmore),thenright-clickontheStartMenuandselecttheoptionWindowsPowerShell(Admin):

Nowdownload link and then run and depending on where you downloaded use cd to browse, example :

cd C:\Users\[Nome do seu usuário padrão]\Downloads

And then run it by typing this in the terminal:

python get-pip.py
  

Anyway, if you can avoid Programs And Files or any folder that needs privileges, it will be better (easier).

    
25.09.2017 / 23:52
0

I was able to solve it as follows; Even my system being 64x seems to me that git does not run right. It features the pip version 7.0 and does not even update the stick. I had to install python 86x to run git and the rest of the packages I wanted as kivy. In this version you have pip 9.0.

    
25.09.2017 / 22:15
0

To install the pip through a proxy.

Follow the instructions below.

Access: link

Savetheget-pip.pyfiletoafolderandgotothedirectoryofthefileinyourCMDandtype:

  • ifyourproxyisviahttpandauthenticated:
    sethttp_proxy=usuario:senha@servidor:porta

  • ifyourproxyisviahttpsandauthenticated:sethttps_proxy=usuario:senha@servidor:porta

  • Ifyourproxyisviahttpwithoutauthentication:
    sethttp_proxy=servidor:porta

  • Ifyourproxyisviahttpswithoutauthentication:sethttps_proxy=servidor:porta

  • Theservermusthavethewholedomain,forexample,endingwith".com.br" or enter the IP of it.

    Then just type:
    python get-pip.py

    Remember that python needs to be in the PATH variable of your windows.

    And a Scripts folder will be created inside your Python folder with the pip.

        
    16.05.2018 / 22:18
    -1

    With the same thing happened to me, the day before, I installed pyinstaller normally with the pip command, and after that, I did the conversion of a .py, trying to do another conversion the day after. I was trying to install PyInstaller again by the pip command, and said that pip did not exist as well, so I tried to execute the python command in CMD, to check if it was normal, and it was over. that neither the '' python '' command was recognized, even though python is installed on my computer. My solution was to reinstall python, and after that install PyInstaller again.

    I hope it helps! Good luck!

        
    24.03.2018 / 21:47