How to install Pygame for Python 3.4 on Ubuntu 14.04(转)
2015-03-07 17:55
966 查看
First run this to install dependencies: sudo apt-get install mercurial python3-dev python3-numpy \ libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-ttf2.0-dev libsmpeg-dev \ libsdl1.2-dev libportmidi-dev libswscale-dev libavformat-dev libavcodec-dev libfreetype6-dev Then download the source for pygame: First install mercurial if you dont have it installed: sudo apt-get install mercurial then: hg clone https://bitbucket.org/pygame/pygame Now build and install pygame for Python 3.4:
cd pygame python3 setup.py build sudo python3 setup.py install
Additional comments: The only version of Python3 I had installed was 3.4 if you have other versions you might have to be more specific.
相关文章推荐
- How to Install and Use Python Pip on Ubuntu 14.04 and pip install pytz
- How to Install OpenCV 3.0 and Python 3.4+ on Ubuntu
- How to install pygame on ubuntu
- How To Install Apache Kafka on Ubuntu 14.04
- How to install the latest Nvidia drivers on Ubuntu 14.04 Trusty Tahr
- How To Install Elasticsearch, Logstash, and Kibana (ELK Stack) on Ubuntu 14.04
- how to create an ssl certificate on nginx for ubuntu14.04
- How to Install Matlab on Ubuntu14.04
- How to Install Python 3.3 on Ubuntu 13.04, 12.10 and 12.04
- How To Install Git on Ubuntu 14.04
- How to Install Docker on Ubuntu 14.04 LTS
- How To Install Apache Kafka on Ubuntu 14.04
- How To Install VNC Server On Ubuntu 14.04
- 【转】How to build and install PHP 5.6.9 from source on Ubuntu 14.04 VPS
- How to install VNC server on ubuntu 14.04
- How to Install Python 2.7.13 on Ubuntu & LinuxMint
- Ubuntu 14.04安装PostgreSQL How To Install and Use PostgreSQL on Ubuntu 14.04
- How To Install Node.js on an Ubuntu 14.04 server
- How To Install and Use Memcache on Ubuntu 14.04
- How to Install OpenERP Odoo 8 on Ubuntu Server 14.04 LTS