Python import error
I have installed python 2.7.11 and pygame 1.9.2a0 and PyOpenGL-3.1.1.. Whenever I try to import pygame and PyOpenGL by typing:
import pygame
import OPENGL
I get following error message :
>>> import OPENGL Traceback (most recent call last): File "<stdin>", line 1, in <module> ImportError: No module named OPENGL >>> import pygame Traceback (most recent call last): File "<stdin>", line 1, in <module> ImportError: No module named pygame
I know this problem. :), when you setup anaconda, you chose path.
I did as you said. Error did not.
Firstly, you shoul open cmd but as manager, end than you can write “python” on command line. finally in order;
>>> import pygame
>>> import OPENGL
can you still take same error? can you check it?
“import pygame” and “import OPENGL” installed setup python library. Python program was run in python idle; but program didn’t run in spyder.
“import pygame” and “import OPENGL”, did you setup this python librariy?