Ask Your Question

ImportError: No module named pygame

asked 2013-09-22 14:51:40 -0500

stillwaiting gravatar image

I've been trying to install SimpleCV on Windows 8 and have been having a lot of trouble. I've tried using the superpack from the simplecv website and it didn't work right off the bat. Then I tried installing the components separately and that didn't work either. If I use the import SimpleCV I get the following error:

Traceback (most recent call last): File "<pyshell#0>", line 1, in <module> import SimpleCV File "C:\Python27\lib\site-packages\", line 3, in <module> from SimpleCV.base import * File "C:\Python27\lib\site-packages\SimpleCV\", line 21, in <module> import pygame as pg ImportError: No module named pygame</module></module></module></pyshell#0>

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2013-09-23 09:54:33 -0500

updated 2013-09-23 10:01:06 -0500

1 - Install setuptools setup tools download

2 - Install pip pip download

For me, this installed Pip at C:\Python27\Scripts\pip.exe. Add your analogue of C:\Python27\Scripts to your path (Start / Edit environment variables). Now you should be able to run pip from the command line.

then you can use

pip install pygame

and pip install any_package

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools


Asked: 2013-09-22 14:51:40 -0500

Seen: 3,066 times

Last updated: Sep 23 '13