当前位置:网站首页>安装Pygame
安装Pygame
2022-07-27 04:42:00 【理不尽的神之手】
安装Pygame
使用pip安装Python包
在Windows系统中检查是否安装了pip
python -m pip –version

如果没安装pip,使用下面的命令运行get-pip.py:
python3 get-pip.py或者python get-pip.py
在Windows系统中安装Pygame
访问:http://www.lfd.uci.edu/~gohlke/pythonlibs/#pygame, 查找与你运行的Python版本匹配的Windows安装程序或者扩展名为.whl的文件
如果该文件的扩展名为.whl,就将它复制到你的项目文件夹中。再打开一个命令窗口,切换到该文件所在的文件夹,并使用pip来运行它:
F:\python_project\alien_invasion>python -m pip install --user pygame-2.1.2-cp38-cp38-win_amd64.whl

报错信息:此平台不支持当前whl文件
查看platform信息:

该下载:pygame-2.1.2-cp38-cp38-win32.whl

验证:
import pygame

边栏推荐
- UUID and indexing rules
- Structural mode - adapter mode
- CDH集群集成外部Flink(改进版-与时俱进)
- 【Acwing】第61场周赛 题解
- TCP three handshakes and four disconnects
- HCIA dynamic routing rip basic experiment
- HCIA static routing basic simulation experiment
- OFDM 十六讲 2- OFDM and the DFT
- 利用Power Automate,轻松下载Power BI报告中的数据
- HCIA static routing comprehensive experiment
猜你喜欢
随机推荐
Replication of df-gan experiment -- detailed steps of replication of dfgan and forwarding from remote port to local port using mobaxtem
Digital integrated circuit: MOS tube device chapter (II)
5. Display of component dynamic components
Full revolutionary networks for semantic segmentation (FCN)
使用mq消息队列来进行下单流程的高并发设计,消息挤压,消息丢失,消息重复的产生场景和解决方案
【搜索】双向广搜 + A*
R-score reproduction R-Precision evaluation index quantitative text generation image r-score quantitative experiment whole process reproduction (R-Precision) quantitative evaluation experiment step on
Solution to the third game of 2022 Hangzhou Electric Multi school league
.htaccess learning
0 dynamic programming medium leetcode467. The only substring in the surrounding string
[search] two way search + A*
Huawei's entry into the commercial market: due to the trend, there are many challenges
On the problem that Gorm's beforedelete hook method does not work
报错:cannot read poperties of undefined(reading ‘then‘)
Effect Hook
Use unity to build a WordArt system
2019 top tennis cup upload
Plato farm is expected to further expand its ecosystem through elephant swap
Customize the viewport height, and use scrolling for extra parts
Interview must ask | what stages does a thread go through from creation to extinction?







![[C language] detailed explanation of user-defined types (structure + enumeration + Union)](/img/d9/b10371159c63c126b5ff98bac0971a.png)
