解决pip安装pygame提示python setup.py egg_info did not run successfully.│ exit code: 1错误

Posted 牛奶咖啡13

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了解决pip安装pygame提示python setup.py egg_info did not run successfully.│ exit code: 1错误相关的知识,希望对你有一定的参考价值。

一、问题描述

当使用命令【pip install pygame】进行安装时提示【

Preparing metadata (setup.py) ... error

error: subprocess-exited-with-error

× python setup.py egg_info did not run successfully.

│ exit code: 1

╰─> [77 lines of output]

】报错信息如下图所示:

pygame使用pip安装时报错,求解决

pygame使用pip安装时报错,求各位大佬帮忙解决

pip版本22.3.1已升级
setuptools版本65.5.1已升级
Python版本3.11环境变量已添加
使用代码pip install pygame
错误代码如下
error: subprocess-exited-with-error

× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [77 lines of output]

  WARNING, No "Setup" File Exists, Running "buildconfig/config.py"
  Using WINDOWS configuration...

[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

以上是关于解决pip安装pygame提示python setup.py egg_info did not run successfully.│ exit code: 1错误的主要内容,如果未能解决你的问题,请参考以下文章

[求助]python3.11+mac12.6 pip3安装pygame一直报错

安装pygame后为什么现实找不到这个模块

已使用pip安装pygame,为何python运行仍然报错?

pygame使用pip安装时报错,求解决

python入门教程python 3.4 安装 pygame 和 wxPython教程

安装pygame出错怎么办?