0 votes
1 view
in Python by (11.8k 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 (24.6k 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.8k points)
0 votes
1 answer
asked Nov 25, 2019 in Python by Sammy (47.8k points)
0 votes
1 answer
asked Nov 25, 2019 in Python by Sammy (47.8k points)
Welcome to Intellipaat Community. Get your technical queries answered by top developers !


Categories

...