python中安装pygame__linux
来源:互联网 发布:网络编程聊天室 编辑:程序博客网 时间:2024/06/02 13:27
1、检查是否已经安装了pip
2、没装的话,请访问https://pip.pypa.io
3、下载完毕之后,知道它的路径,并到这个路径下输入,然后回车
如果启动终端会话是使用的是命令python3 ,那么就应该使用 sudo python3 get-pip.py
使用命令pip --version(pip3 --version)确认正确安装
4、开始安装pygame
5、执行下面的命令,若没有任何输出,说明成功导入pygame
如果是python3,不仅要下载和安装pygame,还要安装下面的所需的库
sudo apt-get install python3-dev mercurial
sudo apt-get install libsdl-image1.2-dev libsdl2-dev libsdl--ttf2.0-dev
可以装一些额外的库,我就不敲了。
之后再安装pygame $ pip3 install --user hg+http://bitbucket.org/pygame/pygame 等等
因为没有装python3 所以无法验证,等以后装了再补充
阅读全文
0 0
- python中安装pygame__linux
- python中django安装
- python中安装feedparser
- Python中MySQLdb安装
- python中安装pandas
- caffe中安装python
- Ubuntu中安装Python
- Python中easy_install安装
- windows中安装python
- python 中 xgboost 安装
- Python中安装numpy
- Python中安装lxml
- python中软件包安装
- Python中安装模块
- python中安装matplotlib
- python中安装 tushare
- python中安装parakimo库
- python中安装parakimo库
- 一致性hash算法
- 完全覆盖
- Android Studio 非常好用的几款插件,好用到爆
- CarbonData源码阅读(2)-Hadoop InputFormat
- mac 下安装Scrapy
- python中安装pygame__linux
- 栈和队列的算法题总结
- 哈夫曼编码与压缩效率分析
- codeforces788E New task -- 线段树
- Windows下新建 .gitignore 文件出现 “必须键入文件名”
- Tomcat性能调优
- caffe过程中的错误(一)
- hdu 1867 A + B for you again KMP
- Redis之aof日志持久化