I already installed the latest version of Python 3 and I installed Pygame using the terminal I also included import Pygame in my file however when I run the file it refuses to open and displays the error message "no module named pygame" What's the problem? What's the solution?
Try python3 first.py
in your terminal.
Or in your file first.py add this line at the top: (I used python3.x but you should add the correct version of your python 3)
#!/usr/local/bin/python3.x
To see your version:
$ python3 -V
Python 3.5.2
To see your python 3 path:
$ which python3