Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
4 views
in Python by (16.4k points)

I've installed Python 3.3.2 and pygame 1.9.2a0. At whatever point I attempt to import pygame by composing: 

import pygame

I got the following error message:

Python 3.3.2 (v3.3.2:d047928ae3f6, May 16 2013, 00:03:43) [MSC v.1600 32 bit (Intel)] on win32

Type "copyright", "credits" or "license()" for more information.

>>> import pygame

Traceback (most recent call last):

  File "<pyshell#0>", line 1, in <module>

    import pygame

ImportError: No module named 'pygame'

>>> 

I experienced a portion of the inquiries identified with this error yet none of the solutions made a difference. I also have 64-bit machine with Win7 OS

1 Answer

0 votes
by (26.4k points)

Now, go to python/scripts folder. Now try to open the command window to this path. 

Now , type the following:

C:\python34\scripts> python -m pip install pygame

If you want to test this, Just open the Python IDE and then, type.

import pygame

print(pygame.ver)

It will work.

Are you pretty much interested to learn python in detail? Come and join the python training course to gain more knowledge.

Related questions

0 votes
1 answer
0 votes
1 answer
asked Nov 25, 2019 in Python by Sammy (47.6k points)
0 votes
1 answer
asked Nov 25, 2019 in Python by Sammy (47.6k points)
0 votes
1 answer
asked Nov 25, 2019 in Python by Sammy (47.6k points)

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...