How to install PIP in Windows 10?

Asked

Viewed 49,407 times

5

I’m trying to install the PIP according to the documentation Python. It is installed but does not work.

This always happens:

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

How can I solve this problem?

7 answers

4

If Python is already in the environment variables just do so:

python -m pip install -U nome_pacote

If you’re not:

<pasta_onde_esta_instalado>\python.exe -m pip install -U nome_pacote

3

It is very likely that you have installed Python inside the folder C:\Programs and Files or C:\Programs and Files (x64) (or another folder without write permission), i.e., your user is not allowed to write to these folders, just after you think you have installed it is likely that something else has occurred.

The ideal to make it easier would be to install maybe at the root, or in your user’s folder, which means you first have to remove Python and then install again and change the installation location.

Another way to install, if that’s what you want, is to install the pip with high privileges

Run cmd as Windows 7 administrator

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

win7

Run cmd as Windows 8 and 10 administrator

Note: In Win8 probably work, in Win10 do not know if this option appears at all, maybe it has been replaced by Powershell

Right-click the mouse/mouse in the Start Menu and select the option prompt de comando (admin):

prompt win8

Windows 10 and powershell as administrator

Maybe your Win10 might not have the command prompt in the menu items, but the powershell is able to do the same as cmd (and more), so right-click the mouse/mouse in the Start Menu and select the option Windows PowerShell (Admin):

win10


Now download the https://bootstrap.pypa.io/get-pip.py and then run and depending on where you downloaded cd to navigate, example:

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

And then run it by typing it into the terminal:

python get-pip.py

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

2

I was able to update my.

goes in python files

C: Users[name_do_usuario] Appdata Local Programs Python Python37 Scripts

and open the Pip files

Pip.exe

pip3.7.exe

pip3.exe

enter the cmd and type

c: users[username] appdata local Programs python python37 python.exe -m Pip install --upgrade Pip

when it updates it is already installed in cmd

I hope I helped! Good luck!

1

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

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

python get-pip.py

This will install Pip on your computer.

0

I was able to resolve it as follows; Even though my system is 64x it seems to me that git on the right wheel. It presents the version of Pip 7.0 and does not update at all. I had to install python 86x in order to run git and the rest of the packages I wanted as kivy. In this version you have Pip 9.0.

0

To install Pip via a proxy.

Follow the following instructions.

Access: https://bootstrap.pypa.io/get-pip.py

inserir a descrição da imagem aqui

Save the file get-Pip.py in a folder and go to the file directory in your CMD and type:

  1. if your proxy is via http and authenticated:
    set http_proxy=usuario:senha@servidor:porta

  2. if your proxy is via https and authenticated:
    set https_proxy=usuario:senha@servidor:porta

  3. if your proxy is via http without authentication:
    set http_proxy=servidor:porta

  4. if your proxy is via https without authentication:
    set https_proxy=servidor:porta

the server has to have the entire domain, for example, ending with ".com.br" or type its IP.

Then you just type:
python get-pip.py

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

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

-1

With me the same thing happened, the day before that, I installed pyinstaller normally by the Pip command, and after that without problems I did the conversion of a . py, when trying to make another conversion the day after, said that the command pyInstaller (Responsible for making the conversion) did not exist, so I went to try to install Pyinstaller again by the Pip command, and said that Pip did not exist either, so I went to try to run the command python by CMD, to check if it was normal, and it turned out that not even the command 'python' was recognized, although python is installed on my computer. My solution was to reinstall python, and after that install Pyinstaller again.

I hope you help him! Good luck!

Browser other questions tagged

You are not signed in. Login or sign up in order to post.