当前位置:网站首页>安装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

边栏推荐
猜你喜欢

【搜索】—— 多源BFS + 最小步数模型

js小技巧

STL upper series - detailed explanation of list container

CEPH operation

The digital China Construction Summit ended with a list of massive pictures on site!

【搜索】双向广搜 + A*
![[search] connectivity model of DFS + search order](/img/67/40444e53621371b1c8b47f22ebc956.png)
[search] connectivity model of DFS + search order

ps怎么导入lut预设?Photoshop导入lut调色预设教程

报错:cannot read poperties of undefined(reading ‘then‘)

Digital integrated circuit: MOS tube device chapter (I)
随机推荐
2019 top tennis cup upload
「Photoshop2021入门教程」调整图片到不同的长宽比
Two way republication experiment
2022 T2i text generated image Chinese Journal Paper quick view-1 (ecagan: text generated image method based on channel attention mechanism +cae-gan: text generated image technology based on transforme
Title: there is an array that has been sorted in ascending order. Now enter a number and ask to insert it into the array according to the original rule.
CEPH operation
2019强网杯upload
【C语言】动态内存管理
有趣的C语言
[dynamic planning hundred questions strengthening plan] 11~20 (continuously updating)
OFDM 十六讲 2- OFDM and the DFT
HCIA static routing basic simulation experiment
如何做数据平滑迁移:双写方案
IIC communication protocol (I)
多态的详讲
[C language] dynamic memory management
MySQL下载安装 & 完美卸载
「Photoshop2021入门教程」对齐与分布制作波点图案
What if Photoshop prompts that the temporary storage disk is full? How to solve the problem that PS temporary storage disk is full?
Comprehensive experiment of static routing