My issue is that i am able to import a python module in the terminal using the shell but when i import the same module in a file, i get an error. This is the message i get:
Traceback (most recent call last):
File "/home/dalcoy/Desktop/Projects/Scripts/something.py", line 1,
in <module>
import pygame
ImportError: No module named pygame
[Finished in 0.0s with exit code 1]
[shell_cmd: python -u
"/home/dalcoy/Desktop/Projects/Scripts/something.py"]
[dir: /home/dalcoy/Desktop/Projects/Scripts]
[path:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games]
this is the program:
import pygame
Any solution?