I was trying to get pygame on my mac to work. I got it running in terminal. But I run into issues when trying to use it with netbeans or trying to run the file. It gives me the error
from pygame.locals import *
ImportError: No module named locals
any help? Thanks!
If you still want to use netbeans, I think you should take a look at ActivePython
Activepython basically lets you install different pythons on your machine and be able to select between them (there’s a lot more features I’m sure).
My advice would be to go to the console and type
If that works, ctrl-c out and do a python -v to find out the version.
Once you have the version, you can use activepython to select that version by running:
sudo pysel [version]. For instance for python2.7:
sudo pysel 2.7
This should switch the python over and your netbeans should (hopefully) work with it.