ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am new to pygame and Linux and I am using Red Hat Linux and I cannot import pygame. I thought I installed it but when I open up Python IDLE It says "No module named pygame". Does anyone know what is wrong?? I downloaded pygame1.9.1.release.tar.gz from http://www.pygame.org I might not have installed it or maybe I need something else too, I don't know.
Did you extract the tar?
If not you will have to first extract the tar using the cmd
tar -xzvf pygame1.9.1.release.tar.gz
then transfer the contents to the directory where your modules reside.
Or even better, install pygame using Ubuntu Software Center (according to your icon, you seem to be using Ubuntu). That way, it will be tracked by your package manager.
Differences to using it under Python 3.1, you mean (or another version of python)? There shouldn't be, as far as I'm aware the Pygame code will be the same, only some of the basic Python syntax will have changed
I had assumed the OP had downloaded the correct version for the version of python they were using. http://www.pygame.org/download.shtml has windows binary packages for both 3.1 and several 2.x, so I presume it supports both - but perhaps the previous difficulties were caused by using different pygame/python versions
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.