0

I'm getting following error when I run the command pip install --upgrage pip in an active venv created with python -m venv venv on Windows OS.

enter image description here

And, once run this command(pip install --upgrade pip) the second time I try any pip command, I receive another error...

\venv\Scripts\pip.exe_main_.py", line 4, in ModuleNotFoundError: No module named 'pip'

I have tried python versions 3.7.8 and 3.8.5

This SO thread doesn't solve my problem, so Please don't close my question.

DevLoverUmar
  • 11,809
  • 11
  • 68
  • 98

1 Answers1

1

Try to close all running IDEs or Jupyter notebook, and for the second error try using pip3 instead of pip.
pip3 install --user <package_name>
or
python -m pip3 install --user --upgrade pip

This question has a similar error, might be helpful: Python - PIP install trouble shooting - PermissionError: [WinError 5] Access is denied

Karthik J
  • 51
  • 6