-1

python, ModuleNotFoundError: No module named 'pygame', pip

in the command prompt, it says "Requirement already satisfied" but when trying to import, I keep getting errors.

2 Answers2

0

You have probably multiple python versions installed. But 'pip' only installed the package for one of those versions.

You can specify the python version like this

python[your version] -m pip install [package]

This will install 'pygame' for python 3.10:

python3.10 -m pip install pygame

Jerry
  • 401
  • 4
  • 11
0

U may have to install pygame using pip. If you have already done that then it should work. If pip is not recognized then open windows run and type %appdata% u have to reinstall python with pip and add it to your enviroment path. It must work

samsuper
  • 1
  • 1