Comment on Can someone help me get Pygame working?
lokalhorst@feddit.org 4 days ago
Does this work? python3 -m pygame.examples.aliens
Also, is there a reason why you are using 'apt` instead of pip?
Comment on Can someone help me get Pygame working?
lokalhorst@feddit.org 4 days ago
Does this work? python3 -m pygame.examples.aliens
Also, is there a reason why you are using 'apt` instead of pip?
ComicalMayhem@lemmy.world 4 days ago
It 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-environmentand a bunch of more text suggesting apt installs withpython3-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.