How do I install the pygame libraries on raspberry pi?
Its easy enough on Windows, but how to do it on Debian.
I have tried:
sudo apt-get install pygame
and
sudo apt-get install python-pygame
without success.
Regards Trevor
Re: pygame installation
If you want to use Python 2 and you are using Wheezy then Pygame is already installed. If you want to use it with Python 3 then I have the details on what to do in my Wiki entry see http://elinux.org/RPI_Trinity_Computer_Club. Does that help? Peter
Re: pygame installation
Thanks vinntec.zyyzxx wrote:How do I install the pygame libraries on raspberry pi?
Its easy enough on Windows, but how to do it on Debian.
I have tried:
sudo apt-get install pygame
and
sudo apt-get install python-pygame
without success.
Regards Trevor
The first 3 lines worked fine.
The fourth line reported an error. Could you have omitted 'install' after apt-get?
I changed the line and it seemed to work ok.
I then had trouble with the line 'hg clone..'
Response was '-bash: hg: command not found.
Should it be git clone...
I dont know, my Unix knowledge is very limited.
Hope you can help
Regards Trevor
Re: pygame installation
Hi Trevor - there were a couple of typos which I made after splitting the apt-get command into multiple lines rather than one great long one, which I have corrected on the Wiki already.
The
Regards - Peter
The
command requireshg
to be installed. I thought I had added it - OK I will go and do it now! In the meanwhile, if you install it yourself you can continue from there:mercurial
Code: Select all
sudo apt-get install mercurial
Re: pygame installation
Online version has been updated - so hopefully instructions for installing PyGame with Python 3 will work out of the box now! Peter
Re: pygame installation
Thanks Peter.
Wow! Pygame now installed and works seamlessly.
Regards Trevor
Wow! Pygame now installed and works seamlessly.
Regards Trevor
Re: pygame installation
hi
when I try this process - it appears not to be able to locate a number of files on the raspberry.org server - anybody else had this problem?
HELP
when I try this process - it appears not to be able to locate a number of files on the raspberry.org server - anybody else had this problem?
HELP
-
- Posts: 10
- Joined: Mon Dec 23, 2013 10:01 am
Re: pygame installation
hi
I have been having trouble installing pygame on my raspberry pi at school, but after one last effort in the lx terminal I finally found out how to install it,as I was just playing about with commands I thought might do it the code I have done so far says it has installed it although python is not picking it up the terminal says it has installed so I suspect there is more, but anyway....
I have been having trouble installing pygame on my raspberry pi at school, but after one last effort in the lx terminal I finally found out how to install it,as I was just playing about with commands I thought might do it the code I have done so far says it has installed it although python is not picking it up the terminal says it has installed so I suspect there is more, but anyway...
Code: Select all
wget http://www.s3.amazonaws.com/pygame