Skip to content

Instantly share code, notes, and snippets.

@harshithjv
Last active June 3, 2020 07:54
Show Gist options
  • Select an option

  • Save harshithjv/6851106ea7999333f151531eae75e474 to your computer and use it in GitHub Desktop.

Select an option

Save harshithjv/6851106ea7999333f151531eae75e474 to your computer and use it in GitHub Desktop.
Upgrading pip3 on windows
REM where is windows alternative to which in Nix platforms
where pip3
REM Output : %APPDATA%\Local\Programs\Python\Python3\Scripts\pip3.exe
REM %APPDATA% is an environment variable and won't show like that. Will show actual full path like: C:\Users\Foo\AppData\Local\Programs\Python\Python38\Scripts\pip3.exe
where easy_intall
REM Output will show multiple paths if multiple versions of Pythons are installed. Choose the one in same directory where pip3 installed like above.
"<Drive Letter>:\path\to\easy_install.exe" -U pip
REM E.g.: "C:\Users\Foo\AppData\Local\Programs\Python\Python38\Scripts\easy_install.exe" -U pip
REM check version
pip3 -V
REM Below command may not work well
py -m pip3 -V
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment