Comment on Can someone help me get Pygame working?
ComicalMayhem@lemmy.world 4 days agoIt does not. I get the same module missing error.
/usr/local/bin/python3: Error while finding module specification for ‘pygame.examples.aliens’ (ModuleNotFoundError: No module named ‘pygame’)
Using apt because pip throws an error when I try to install using it. error: externally-managed-environment and a bunch of more text suggesting apt installs with python3-xyz.
lokalhorst@feddit.org 4 days ago
Never use your system Python. It is used by your OS and should not be tempered with. Use a virtual environment instead. Read this whole comment in stack overflow stackoverflow.com/…/how-do-i-solve-error-external…
ComicalMayhem@lemmy.world 4 days ago
I followed the instructions on the page but I still get the “module not found” error when running the file I made and the pygame.examples.aliens
lokalhorst@feddit.org 4 days ago
Did you activate the environment before running your Python script using
source venv/bin/acticate? Replacevenvwith the directory of the environment.