Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Python: Pip command is not recognized

Tags:

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?

like image 490
Mazvél Avatar asked Oct 14 '12 01:10

Mazvél


People also ask

How do I fix pip not recognized?

The error “'pip' is not recognized as an internal or external command” is encountered because of two main reasons that are. PIP Installation path is not added to the system variables: If you have installed python through prompt then you need to configure PIP path manually.

Why is pip install not working in Python?

One of the most common problems with running Python tools like pip is the “not on PATH” error. This means that Python cannot find the tool you're trying to run in your current directory. In most cases, you'll need to navigate to the directory in which the tool is installed before you can run the command to launch it.


2 Answers

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

like image 69
Mazvél Avatar answered Sep 20 '22 03:09

Mazvél


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

like image 30
arvind kumar Avatar answered Sep 19 '22 03:09

arvind kumar