I'm trying to make a game using pygame and pygame_menu. When I try to install pygame_menu I get this error:
Traceback (most recent call last):
File "D:\Game\main.py", line 7, in <module>
import pygame_menu
ModuleNotFoundError: No module named 'pygame_menu'
I ran this command to install the module:
pip install pygame-menu -U
Here's how I import the module:
import pygame_menu
I have no idea how to fix this. If you know how to fix this or a better module for GUI elements in pygame please tell me.
I'm far from experienced in PyGame and pygame-menu, but I'm able to get a window up and running with the following code and importing both pygame and pygame-menu with the following commands:
pip install pygamepip install pygame-menu -UPlease try this code above to see if you can get it working.