I have installed pip and pygame module a few hours ago and when i try to import pygame module in my python
import pygame
print("well")
file i get this error
'''
Traceback (most recent call last):
File "f:/VSCode/Alien_Invasion/alien_invasion.py", line 2, in <module>
from pygame import *
File "C:\Users\3mosh\AppData\Roaming\Python\Python37\site-packages\pygame\__init__.py", line 130, in <module>
from pygame.base import *
ModuleNotFoundError: No module named 'pygame.base'
'''
Uninstall pygame before attempting each install with pip3 uninstall pygame.
Try using pip3 install pygame
if that doesn't work, try pip install pygame-menu==2.0.1
Also, if you have python installed multiple times, it could be installed on one of those.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With