I am using a mac. I am trying to run a project through the script package on atom-editor but it gives me the following error:
File "/Users/username/PycharmProjects/HelloWorld/main.py", line 1, in <module>
import pygame, sys, random, time
ModuleNotFoundError: No module named 'pygame'
[Finished in 0.085s]
This error shows even though I have pygame installed and it works with my idle and PyCharm