Pip on Windows giving error - Unknown or unsupported 'install' command

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, no errors.

But when I tried to install the selenium package with it, it gave me the following error -

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

Where am I making a mistake?

+69
python pip selenium
Sep 19 '11 at 10:17
source share
11 answers

Do you have a Perl pearl somewhere somewhere?

Looks like the problem described here:

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

To check, at the Windows command prompt, run:

 C:\>where pip 

This will potentially lead to 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 python python path.

+167
Sep 19 '11 at 11:29
source share

This error is related to the fact that the system finds pip.bat before it finds pip.exe.

You do not need to delete Strawberry Perl or enter all the way.

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

+15
Mar 11 '15 at 10:40
source share

Had the same problem in Ubuntu and did:

 $ sudo apt-get remove pip $ sudo apt-get install python-pip 
+13
Dec 26 '11 at 10:36
source share

I had this problem too, and as Johannes said, this is because perl pip is interfering with your Python python.

To get around this, you can simply do this:

python -m pip install <package_name>

+6
Feb 08 '17 at 21:56 on
source share

In addition to Johannes' very useful answer: If you do not want to delete Strawberry, you can reorder the order of PATH entries on your Windows system to make sure your Python\Scripts found before strawberry entries. If you do not want to do this manually, you can use tools such as the Rapid Environment Editor.

+5
May 01 '14 at 4:44
source share

You can also solve this problem without uninstalling Strawberry Perl or without entering all the way. Go to the C: \ Python2.7 \ Scripts directory (your Python directory), then use the pip command.

+4
Jun 30 '15 at 9:22
source share

You must specify the path in the environment variable for pip.exe file

when executing install command you should use below command

 pip.exe install selenium 

It will certainly work, for me it worked :)

+4
Nov 15 '16 at 6:52
source share

For Python 3.X and higher:

At the cmd prompt, type:

 py -m pip install <package_name> 

Make sure pip is already installed. Set the environment variable for pip pointing to the executable

To update:

 py -m pip install --upgrade pip 
+1
May 08 '18 at 20:00
source share

Same issue with DwimPerl. Removing Dwim also fixed the problem.

0
Dec 11 '13 at 1:08
source share

C: \ Python27 \ Scripts \ pip.exe install -U selenium

0
Nov 28 '16 at 5:07
source share

I have the same problem in Windows 10 , finally, the problem has been successfully resolved.

I used the following command where pip

I have shown several pip installations. After deleting another installation, everything worked fine.

0
Mar 22 '19 at 16:04
source share



All Articles