Skip to content Skip to sidebar Skip to footer

Modulenotfounderror: No Module Named 'pygame'

I have python 3.7 with 32bit and after I did pip install pygame, I'm still getting ModuleNotFoundError: No module named 'pygame' when running my code. I'm using pycharm.

Solution 1:

I would just like to add to what the first answer is saying: If you are using pycharm, it still won't work until you go to file >> settings >> >> [your project name] >> python interpreter. You will see a list of packages there. If pygame is on it, then good, else, you must double click on the field where the packages are. It leads you to a little pop up box where you can type in things. If you type in pygame, you should be able to install the package.

Solution 2:

To be sure that you installed the python3 proper module u need to use

pip3 install pygame

Solution 3:

Probably you have several instances of Pythion on your computer. You may install pygame in one instance, but IDE uses another.

Post a Comment for "Modulenotfounderror: No Module Named 'pygame'"