-
Notifications
You must be signed in to change notification settings - Fork 10
PythonGame
mythos edited this page Jul 21, 2018
·
5 revisions
目录 start
目录 end
|2018-07-08| 码云 | CSDN | OSChina
python2 安装 pygame
-
sudo apt install python-pygame
python3 安装 pygame -
sudo apt install python3-dev mercurial
-
sudo apt install libsdl-image1.2-dev libsdl2-dev libsdl-ttf2.0-dev
安装一些声音的功能 -
sudo apt install libsdl-mixer1.2-dev libimportmidi-dev
-
sudo apt install libswscale-dev libsmpeg-dev libavformat-dev libavcode-dev
-
sudo apt install python-numpy
执行这个安装pygame 如果必要换成 pip3
-
pip install --user hg+http://bitbucket.org/pygame/pygame
我使用上面的方式安装报错,使用这个完成了安装 -
sudo pip install pygame
检验是否安装成功
-
import pygame
查看版本pygame.ver
- Introduction
- ApiAndDoc
- Platform
- Process
- Repository
- SUMMARY
- Website
- 【 Article 】
- 【 Blog 】
- 【 Database 】
- 【 FrontEnd 】
- 【 FrontEnd/Frame 】
- 【 FrontEnd/Node 】
- Hexo
- JavaScript
- LearnPS
- ResponseCode
- ViewSolution
- 【 Functional 】
- 【 Go 】
- 【 Java 】
- 【 Java/AdvancedLearning 】
- 【 Java/Framework 】
- 【 Java/MSA 】
- 【 Java/Spring 】
- 【 Java/TemplateEngine 】
- 【 Java/Tool 】
- AlibabaJavaStandard
- EE
- JavaSE
- Log
- MIS
- RESTful
- ZenOfPattern
- 【 Linux 】
- 【 Linux/Alpine 】
- 【 Linux/Arch 】
- 【 Linux/Base 】
- 【 Linux/Centos 】
- 【 Linux/Container 】
- 【 Linux/Debian 】
- 【 Linux/Tool 】
- 【 Linux/Vcs 】
- JavaDevInit
- 【 MyBlog 】
- 【 MyBlog/Problem 】
- 2018-3-15-install-deepin
- why-put-netty-in-tomcat
- 【 Python 】
- 【 Reactive 】
- 【 Script 】
- 【 Skills 】
- 【 Skills/CS 】
- 【 Skills/Document 】
- 【 Skills/Ecology 】
- 【 Skills/FrameWork 】
- 【 Skills/Soft 】
- 【 Skills/Spider 】
- 【 Skills/Test 】
- 【 Skills/Work 】
- AppManual
- CelebrityQuotes
- CodingThinking
- Problem
- RegularExpression
- SoftwareDesignEngineer
- 【 Windows 】