I installed python(2.7) using anaconda on an ubuntu machine.
I installed pygame.
When I import pygame I get the error:
ImportError: No module named pygame
Interestingly, when I use /usr/bin/python
,
the interpreter now gives no error for import python.
My code file has to run by command python x.py,
not in te interpreter.
How could I resolve the issue?
Many Thanks.