Windows 安装pygame
1.cmd确认python版本
Python 3.10.0 (tags/v3.10.0:b494f59, Oct 4 2021, 19:00:18) [MSC v.1929 64 bit (AMD64)] on win32
2.选择pygame下载
https://www.lfd.uci.edu/~gohlke/pythonlibs/#pygame
pygame‑2.1.2‑cp310‑cp310‑win_amd64.whl
3.pip安装
C:\Users\jjmxi\Downloads>pip install pygame-2.1.2-cp310-cp310-win_amd64.whl
Processing c:\users\jjmxi\downloads\pygame-2.1.2-cp310-cp310-win_amd64.whl
Installing collected packages: pygame
Successfully installed pygame-2.1.2
4.安装成功
pip list
Package Version
pip 21.2.3
pygame 2.1.2
setuptools 57.4.0
C:\Users\jjmxi>python
Python 3.10.0 (tags/v3.10.0:b494f59, Oct 4 2021, 19:00:18) [MSC v.1929 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
import pygame
pygame 2.1.2 (SDL 2.0.18, Python 3.10.0)
Hello from the pygame community. https://www.pygame.org/contribute.html
如果觉得我的文章对您有用,请点赞。您的支持将鼓励我继续创作!
赞2
添加新评论0 条评论