20

Here is a screenshot I took.

enter image description here

When I try to use pip in command prompt I get the following error message: pip is not recognized as an internal or external command, operable program or batch file.

I already checked this thread: How do I install pip on Windows?

All I could find there was I had to add "C:\PythonX\Scripts" to my classpath, where X stands for python version.

As you can see on my screenshot I already have this path. I already tried restarting the computer but that didn't work, o.O. The screenshot also shows my C:\Python27\Scripts folder.

Does anyone know what I am doing wrong?

Community
  • 1
  • 1
Mazvél
  • 951
  • 1
  • 8
  • 22

10 Answers10

12

There is a space before the last path entry, right after the previous semicolon, that is causing the problem.

Mazvél
  • 951
  • 1
  • 8
  • 22
7

Go to C:\Python27\Scripts

Now select the url bar and replace whole content with cmd

This way you directly reach to the directory where pip is available in command prompt

Now type pip install Django==1.8.5 it will download and install Djanog

arvind kumar
  • 81
  • 1
  • 4
2

I had the same exact problem, but typing your command in the "Scripts" folder fixed it!

In other words:

  1. Open command prompt (right click windows start menu and click on "Command Prompt (Admin)"
  2. Use "cd" command to change directory to where python is installed, but go to your scripts folder (for me, this is cd C:\Program Files\PythonXX\Scripts where the XX is the version number of Python)
  3. Once in "Scripts" folder, type pip install cython and press enter
magnetar
  • 134
  • 7
2

what I did is for example in the command prompt or cmd in windows:

py -m pip install pygame
0

It started working for me when I added ; in PATHEXT after .PY

0

1) browse here - C:\Python27\Scripts
2) open the cmd window/terminal (shift+'right click')
3) type pip install django

syed zayed
  • 21
  • 4
0

1) open cmd as an administrator

2) enter: cd c:\python27\scripts (go to python and shift right click on folder. Than copy to path)

3) press enter

4) pip install

John
  • 1
0
  1. Add "your python path"\Scripts to PATH variable. See How to set path variable

  2. Don't forget to restart the command prompt.

Now pip will work in any path.

0

Go to your Python Script Path, copy the path, go to CMD and type cd "paste the path you copied".

type pip --version

You will see the version of pip your system is running.

0
  1. Check if you have python installed properly.

  2. next install pip using

a) Download get-pip.py to a folder on your computer.

b) Open a command prompt and navigate to the folder containing get-pip.py.

c) Run the following command:

python get-pip.py

Pip is now installed!

  1. Copy the path of executable file in environment variable. It is the Script folder path where python is installed. like C:Programs\Python\Python35-32\Scripts OR C:\Users(username)\AppData\Local\Programs**\Python\Python35-32\Scripts**

  2. Restart your command prompt and its done

Dip
  • 646
  • 6
  • 8