Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

pip on Windows giving the error - Unknown or unsupported command 'install'

Tags:

python

pip

I installed pip on Windows by downloading http://pypi.python.org/packages/source/p/pip/pip-1.0.2.tar.gz#md5=47ec6ff3f6d962696fe08d4c8264ad49 and running python setup.py install

Installation went fine with no errors.

But when I tried installing selenium package with it, it gives me the following error -

pip install -U selenium Unknown option: u Unknown or unsupported command 'install' 

Where I'm making the mistake?

like image 635
theharshest Avatar asked Sep 19 '11 10:09

theharshest


People also ask

Why pip install is not working in command prompt?

Reinstall Python to Fix 'Pip' is Not Recognized as an Internal or External Command. This error usually means there's a problem with the Python installation or the system variable PATH is not set up correctly. Try reinstalling Python and all its components to fix the problem.

Why cant I do pip install?

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.

How do you fix error you must give at least one requirement to install see pip help install?

You must give at least one requirement to install (see "pip help install") You are using pip version 9.0. 1, however version 9.0. 3 is available. You should consider upgrading via the 'python -m pip install --upgrade pip' command.


2 Answers

Do you happen to have the Perl pip lying around somewhere?

Sounds like the problem described here:

https://github.com/mike-perdide/gitbuster/issues/62

To check, in Windows command prompt execute:

C:\>where pip 

This will potentially output the following:

C:\strawberry\perl\bin\pip C:\strawberry\perl\bin\pip.bat 

If so, this is your problem. Unistall Strawberry Perl or use the full path to python pip.

like image 71
Johannes Charra Avatar answered Sep 28 '22 10:09

Johannes Charra


This error is because the system is finding pip.bat before it finds pip.exe.

You do NOT need to uninstall Strawberry Perl or type the whole path.

What I do is to simply type pip.exe (same number of keystrokes as apt-get) when I want to use the Python utility. This method seems to work find for me on Win7 with Python(x,y) 2.7x and Strawberry Perl installed.

like image 34
user3742632 Avatar answered Sep 28 '22 10:09

user3742632