Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I recently installed Ubuntu 13.04 and want to install pygame. I've attempted doing as instructed on the pygame page (using the source code) however I am unable to install the dependencies and I get Unable to locate package for every single one. I then tried, as suggested throughout other forums, "sudo apt-get install python-pygame" however these were quite old forum posts, talking about Ubuntu 9.x. This did not work, and I got the error: unable to locate package pygame. Can someone please help me with this?

share|improve this question
add comment

2 Answers

Execute these commands as root, using sudo in a terminal.

wget http://www.python.org/ftp/python/3.3.0/Python-3.3.0.tar.xz
tar -Jxf Python-3.3.0.tar.xz
cd Python-3.3.0
apt-get build-dep python3
./configure
make
make install 

After that just run the interpreter:

python3.3 
share|improve this answer
1  
Are you sure all those commands need to be executed as root? –  Seth Mar 10 at 21:18
add comment

I was in the pygame directory (the source code) and simply changed to the root file cd ~/ and then type sudo apt-get install python-pygame and it worked!

share|improve this answer
2  
Downvote: There is not relationship at all between the your current dir and apt-get. This is not the reason why apt-get worked. –  Javier Rivera May 31 '13 at 14:51
    
well it worked, and I do not know why. I just posted what worked and this is what worked. –  ReallyGoodPie May 31 '13 at 14:56
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.