How to Install Pygame to Python 3 on Ubuntu
2014-02-27 23:33
323 查看
How to Install Pygame to Python 3 on Ubuntu
InstallationStart by installing all necessary dependencies, and mercurial and checkinstall for the installation:
1 | sudo apt-get install python3-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-ttf2.0-dev libsdl1.2-dev libsmpeg-dev python-numpy libportmidi-dev ffmpeg libswscale-dev libavformat-dev libavcodec-dev checkinstall mercurial |
Pygame source code with the following command (this uses mercurial):
1 | hg clone https://bitbucket.org/pygame/pygame[/code] |
1 | cd pygame |
1 | python3 setup.py build |
1 | sudo checkinstall python3 setup.py install |
Click here to read why you should use checkinstall.
Use this command to see information about your pygame installation:
1 | apt-get cache show pygame |
1 | dpkg -r pygame |
1 | sudo apt-get remove pygame |
The most recent stable pygame version when writing this is 1.9.1 (which is from August 2009). I did this installation on Ubuntu 12.04 and this was needed since there isn’t a python3-pygame available in the repository.
10
Replies
Posted on: June 16, 2012, 14:36 by Daniel Jonsson
Categories:
Linux,
Programming,
Ubuntu
Tags: Compile,
Linux,
Programming,
Pygame, Python,
Python 3,
Ubuntu
相关文章推荐
- Pygame_How to Install Pygame to Python 3 on Ubuntu
- How to install Pygame for Python 3.4 on Ubuntu 14.04(转)
- How to install python before insalling mpich2
- How to Install OpenCV 3.0 and Python 3.4+ on Ubuntu
- How to install Python 2.7 and Python 3.3 on CentOS 6
- HowTo Install Python + Django + Aptana Studio on Windows
- How to Install Python 3.5.2 on Ubuntu & Linuxmint
- How to install pip3 in Kail Linux when python2 and python3 live together?
- How To Install Python 2.7 with mod_wsgi on CentOS 5.6 with cPanel
- [howto]Install_mod_python_win2k
- How to Install Python 3.3 on Ubuntu 13.04, 12.10 and 12.04
- How to Install and Use Python Pip on Ubuntu 14.04 and pip install pytz
- How to install Python 2.7.3 on CentOS 6.2
- How to install pygame on ubuntu
- How to Install Python 2.7 on CentOS6.5
- How to install pip3 for python 3.x
- how to install protobuff python
- How to install and manage different versions of Python in Linux
- HOW TO: Install Chromedriver for Mac OS X / Selenium / Python
- How to install python packages