Question

I am using Python27 on Windows 7. I have installed easy_install and tried to install pip. easy_install works. But, pip is not.

I keep getting an error saying:

'The term 'pip' is not recognized as the name of a cmdlet, function, script file, or operable program...' when I type pip --help

I did check the environment variable and Python27 and Scripts were in the path. I tried to reinstall pip and it says: 'Requirement already up-to-date: pip in c:\python27\lib\site-packages Cleaning up...'

It sounds like for some reason it cannot find pip in the list of scripts. Any idea how to fix this.

Was it helpful?

Solution

Maybe your PATHEXT environment variable is not configured to consider python scripts as executable. Check whether the PowerShell command below outputs a string with a '.PY' fragment on your computer. If not - well - add this fragment to this env. var. :)

 PS C:\Users\blabla> echo $Env:PATHEXT
    .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;.PY

EDIT: For the above to work, of course the .py extension has to be associated with python.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top