0

I am new to Python and am working my way through Python Crash Course by Eric Matthes. I'm on the first project and can't get pygame to work. I've followed all instructions, tried everything I've seen on Stack Overflow and still stuck! I am on a Macbook 2020, Python 3.8.5

In IDLE when I am trying to run my code I receive this error connected to my 'import pygame' command:

ModuleNotFoundError: No module named 'pygame'

Then in Terminal when I go to verify I have pygame installed, I get this:

(base) @MacBook-Pro ~ % pip install pygame
Requirement already satisfied: pygame in ./opt/anaconda3/lib/python3.7/site-packages (2.0.0.dev10)

Where do I go from here? Thank you!

Rex Nihilo
  • 604
  • 2
  • 7
  • 16
Lauren
  • 31
  • 4
  • It's simple: IDLE is using another python and not the anaconda – eyllanesc Aug 08 '20 at 21:35
  • So what should I do? I'm new to Python... I opened now in Spyder instead of IDLE and am now getting this message: Reloaded modules: settings, ship (settings and ship being the two modules). I deselected the UMR enabled option in the Spyder preferences. – Lauren Aug 08 '20 at 22:28
  • One workaround would be to launch your IDE (i.e. Spyder) through Anaconda. e.g. 1. Open Anaconda Navigator 2. Launch Spyder(or any other IDE from there). – user2529589 Aug 08 '20 at 22:55
  • Yeah, I launched Spyder through Anaconda and still keep getting the 'Reloaded Modules" error, but now no longer getting the gygame error... – Lauren Aug 09 '20 at 00:34
  • Cool, glad the first error got solved and sorry to hear about the second one (it's a new one for me). You may want to try creating a new stack overflow question with the new error message. It helps to include your code (and maybe a link to the tutorial you're referencing). GL! – user2529589 Aug 09 '20 at 19:24

0 Answers0