0

I installed Python and checked the PATH box and made sure pip was check during install. I can see the pip.exe file in the python folder. I get this error when I try to install any package.

Traceback (most recent call last):
File "<frozen runpy>", line 198, in _run_module_as_main
File "<frozen runpy>", line 88, in _run_code
File "C:\python-311\scripts\pip.exe\__main__.py", line 4, in <module>
ModuleNotFoundError: No module named 'pip'
vvvvv
  • 25,404
  • 19
  • 49
  • 81

2 Answers2

0
python -m pip

or

pip3

should resolve your problem.

vvvvv
  • 25,404
  • 19
  • 49
  • 81
0

Have you tried following the pip documentation?

py -m ensurepip --upgrade

Or, to upgrade

py -m pip install --upgrade pip
OneCricketeer
  • 179,855
  • 19
  • 132
  • 245