19

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?

14
  • 3
    Did you open a new DOS prompt? Also print what echo %PATH% says for you. Commented Oct 14, 2012 at 1:47
  • 2
    @SenthilKumaran: OP said they restarted the whole computer Commented Oct 14, 2012 at 1:48
  • @jdi - sorry that escaped me. Commented Oct 14, 2012 at 1:48
  • 1
    The variable should be PATH (not Path), and does not have any spaces between the separators (the ;). Commented Oct 14, 2012 at 1:49
  • 1
    Does this answer your question? 'pip' is not recognized as an internal or external command Commented May 18, 2020 at 7:39

10 Answers 10

12

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

Sign up to request clarification or add additional context in comments.

Comments

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

Comments

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

Comments

2

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

py -m pip install pygame 

Comments

0

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

Comments

0

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

2 Comments

What's the difference here with arvind kumar's answer?
2nd step, a bit easier.
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

Comments

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.

Comments

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.

Comments

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

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.