Sign in to follow this  
Sheldar

Pygame Installation Problem...

Recommended Posts

Sheldar    98
Hey everyone at Gamedev.net. ;D

I have this really weird problem in working with the Pygame module for Python. I've tried a lot of different versions of both Python and Pygame to see if one or the other wasn't compatible but I guess there's something more that I'm not doing right.

What I do:

python.org -> Download latest version -> Downloaded under the /C drive.
pygame.org -> Download latest version -> Downloaded under the /C drive.
Open GUI -> import pygame

And then I get and error saying it hasn't been found.

I don't know if Pygame has to be under the Python folder or if they both can be in /C? I've tried that as well and I just get another error message saying the module can't be found.

Any help would be much appreciated. I've just started to get into game programming and I've been messing around with SDL before this. Just need it to start working for me. ;p

Share this post


Link to post
Share on other sites
j-locke    945
Hey, welcome to Gamedev.net, I hope you have an enjoyable stay. :)




(I'm assuming you're using Windows)

As for the problem you're encountering, are you downloading the Windows installers (the .exe or .msi files)? Imo, they help simplify the process a little bit.

Pygame is available for multiple versions of Python, make sure you're selecting the one that matches the version of Python that you installed. And you should be installing the 32-bit Python (yes, even if you have a 64-bit cpu and operating system). Hopefully those tips/ideas will get you set up. If not, post back with anything that may have changed after allowing those installers to try setting things up.

Share this post


Link to post
Share on other sites
Sheldar    98
Thanks. ;]

Yes, I'm a windows user and I'm using the .msi files. Also, I was downloading the 62-bit versions. ;p

I'll change some stuff around and get back with you.

Share this post


Link to post
Share on other sites
ldmn    117
The pygame.org seems to suggest this match between pygame and win python: [url="http://www.pygame.org/download.shtml"]My link[/url]

[url="http://pygame.org/ftp/pygame-1.9.1.win32-py2.5.msi"]pygame-1.9.1.win32-py2.5.msi[/url] 3MB (python2.5.4 is the best python on windows at the moment)

Share this post


Link to post
Share on other sites
j-locke    945
I jumped through some unfortunate hoops as I started using some additional libraries with Python. It's hit or miss if they support 64-bit or not. And Pygame supports only 32-bit.

In case you didn't already know, because it wasn't exactly the first thing that came to my mind, Python can be uninstalled via the control panel like any normal application (I ended up with 2 or 3 versions of some libraries before I got it all solved and sorted away).

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this