[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[pygame] Importing pygame, ModuleNotFoundError: No module named 'pygame.base'



I’m having trouble importing the Pygame module. I installed pygame using the
following command in the terminal:

*pip install pygame *

When I enter

*import pygame*

and run the script, I get the following error:

*Traceback (most recent call last):

  File "C:\Users\Pruthvi\.spyder-py3\temp.py", line 1, in <module>
    import pygame

  File
"C:\Users\Pruthvi\AppData\Local\Programs\Python\Python38-32\Lib\site-packages\pygame\__init__.py",
line 130, in <module>
    from pygame.base import *

ModuleNotFoundError: No module named 'pygame.base'*

I have tried uninstalling and installing pygame many times. This seems to be
a common problem amongst many, yet I haven't found a solution that works on
StackOverflow/Reddit.

I'm on windows running the latest version of python (3.8.2).



--
Sent from: http://pygame-users.25799.x6.nabble.com/