[Unity学习教程] pip install pygame安装报错办理方案

[复制链接]
查看1272 | 回复0 | 2023-8-23 12:12:45 | 显示全部楼层 |阅读模式 来自 中国北京
针对pip install pygame安装报错的两种不同的办理方法:
一:若python中已经安装好了pip,但pip install pygame却报错的话,可以实验以下步调:
(1)开始,输入cmd
(2)pip install wheel
(3)pip install pygame
二:另一种出现错误的缘故原由是版本题目,此时下载pygame会出现以下警告: 
  1. ERROR: Could not find a version that satisfies the requirement pygeme (from versions: none)
  2. ERROR: No matching distribution found for pygeme
  3. WARNING: You are using pip version 21.2.4; however, version 23.1 is available.
  4. You should consider upgrading via the 'C:\Users\jih\AppData\Local\Programs\Python\Python310\python.exe -m pip install --upgrade pip' command.
复制代码
针对这种题目,我们只须要把警告引号内里的内容复制下来就可以了,即:
  1. C:\Users\jih\AppData\Local\Programs\Python\Python310\python.exe -m pip install --upgrade pip
复制代码
末了,我们就可以成功安装pygame了:

 
 

来源:https://blog.csdn.net/m0_67843030/article/details/130297923
免责声明:如果侵犯了您的权益,请联系站长,我们会及时删除侵权内容,谢谢合作!
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则