goldfrapp p
goldfrapp p

Reputation: 29

How can I use Pygame on atom editor?

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?

Upvotes: 1

Views: 4753

Answers (1)

developer_hatch
developer_hatch

Reputation: 16224

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

Upvotes: 1

Related Questions