Search code examples
pythonpip

pip update error after install after upgrading pip i cannot use it every time i use pip is shows same error and sudo cannot be used either to install


today I install a module with pip for python in the terminal it says warning new version of pip is available u can install it by using pip --upgrade And it successfully installed but after that whenever I try to install any module it says pip : The term 'pip' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.

and i searched here and there and people say that use sudo python -m pip --uninstall pip && sudo apt python -install pip --reinstall

where it says the same thing but this time its

'sudo' : The term 'sudo' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was 

included, verify that the path is correct and try again.


Solution

  • It looks like you need to add Python and PIP to your path (Instructions).

    Also as John Gordon pointed out, sudo is a Unix/Linux command and you appear to be using Windows.