在安装MU编辑器时,我会获得错误元数据生成失效的错误和错误子过程的错误。我更新了pip,正在运行Python 3.10.4

发布于 2025-01-26 23:31:51 字数 3091 浏览 2 评论 0原文

默认为用户安装,因为普通站点包不是 已满足的可写要求:MU编辑器 ./.local/lib/python3.10/site-packages(1.0.3) 满足:pycodestyle == 2.4.0 in ./.local/lib/python3.10/site-packages (来自MU-编辑器)(2.4.0)已经满足的要求: qtconsole == 4.3.1 in ./.local/lib/python3.10/site-packages(来自 MU-EDITOR)(4.3.1)已经满足的要求:Pyqtchart == 5.14.0 in ./.local/lib/python3.10/site-packages(来自mu-editor)(5.14.0) 需求已经满足:gpiozero> = 1.4.1 in ./.local/lib/python3.10/site-packages(来自mu-editor)(1.6.2) 需求已经满足:枕头> = 5.2.0 in /usr/lib/python3/dist包(来自mu-editor)(9.0.1)要求 已经满足:请求> = 2.19.1 in/usr/lib/python3/dist-packages (来自mu-editor)(2.25.1)已经满足的要求:semver> = 2.8.0 in ./.local/lib/python3.10/site-packages(来自mu-editor)(2.13.0) 收集PGZERO == 1.2使用缓存的PGZERO-1.2-PY3-NONE-NONE.WHL(69 kb)收集pyqt5 == 5.14.1使用缓存 pyqt5-5.14.1-5.14.1-cp35.cp36.cp37.cp38-abi3-manylinux2014_x86_64.whl (63.5 MB)已经满足的需求:pyserial == 3.4 in ./.local/lib/python3.10/site-packages(来自mu-editor)(3.4) 需求已经满足:qscintilla == 2.11.4 in ./.local/lib/python3.10/site-packages(来自mu-editor)(2.11.4) 需求已经满足:Pigpio> = 1.40.post1 in ./.local/lib/python3.10/site-packages(来自mu-editor)(1.78) 需求已经满足:nudatus> = 0.0.3 in ./.local/lib/python3.10/site-packages(来自mu-editor)(0.0.5) 需求已经满足:appdirs> = 1.4.3 in ./.local/lib/python3.10/site-packages(来自mu-editor)(1.4.4) 需求已经满足:guizero> = 1.1.0 in ./.local/lib/python3.10/site-packages(来自mu-editor)(1.3.0) 需求已经满足:matplotlib == 2.2.2 in ./.local/lib/python3.10/site-packages(来自mu-editor)(2.2.2) 需求已经满足:pyflakes == 2.0.0 in ./.local/lib/python3.10/site-packages(来自mu-editor)(2.0.0) 收集Kiwisolver> = 1.0.1使用缓存 Kiwisolver-1.4.2-CP310-CP310-Manylinux_2_12_x86_64.manylinux2010_x86_64.whl (1.6 MB)已经满足的要求:六> = 1.10 in /usr/lib/python3/dist包(来自matplotlib == 2.2.2-> mu-editor) (1.16.0)已经满足的要求: pyparsing!= 2.0.4,!= 2.1.2,!= 2.1.6,> = 2.0.1 in /usr/lib/python3/dist包(来自matplotlib == 2.2.2-> mu-editor) (2.4.7)使用缓存收集Python-Dateutil> = 2.1 python_dateutil-2.8.2 py2.py3-none-any.whl(247 kb)收集 使用缓存的Cached Cycler-0.11.0.11.0-py3-none-yany.whl(6.4 kb)使用循环器> = 0.10 需求已经满足:pytz在/usr/lib/python3/dist-packages中 (来自matplotlib == 2.2.2-> mu-editor)(2022.1)要求 满意:numpy> = 1.7.1 in ./.local/lib/python3.10/site-packages(来自 matplotlib == 2.2.2-> mu-editor)(1.22.3)收集pygame< 2.0,> = 1.9.2
使用加速pygame-1.9.6.tar.gz(3.2 MB)准备元数据 (setup.py)...错误错误:子进程 - 否则 ×python setup.py egg_info并未成功运行。 │退出代码:1╰-> [12行输出]

 警告,不存在“设置”文件,运行“ buildConfig/config.py”
  使用Unix配置...
  
  /bin/sh:1:sdl-config:找不到
  /bin/sh:1:sdl-config:找不到
  /bin/sh:1:sdl-config:找不到
  无法运行“ SDL-Config”。请确保安装了SDL的开发版本。
  
  狩猎依赖...
  警告:“ SDL-Config”失败了!
  [输出结束]
 注意:此错误源自子过程,可能不是PIP的问题。错误:元数据生成失败
 

×生成软件包元数据时遇到错误。 ╰ - >见上文 输出。

注意:这是上面提到的软件包的问题,​​而不是PIP。 提示:有关详细信息,请参见上文。

我已经安装了Python 3.10.4,重新安装了PIP3并对其进行了更新(至少尝试)。 我遵循了MU的网站的说明。

我正在使用POP!_OS 22.04 LTS X86_64。我最近从20.04 LTS更新了POP OS。更新后,MU-Editor工作了一段时间,现在我遇到了这个问题。我假设这是由于我弄乱了某种代码。

任何帮助或建议都非常感谢!

Defaulting to user installation because normal site-packages is not
writeable Requirement already satisfied: mu-editor in
./.local/lib/python3.10/site-packages (1.0.3) Requirement already
satisfied: pycodestyle==2.4.0 in ./.local/lib/python3.10/site-packages
(from mu-editor) (2.4.0) Requirement already satisfied:
qtconsole==4.3.1 in ./.local/lib/python3.10/site-packages (from
mu-editor) (4.3.1) Requirement already satisfied: PyQtChart==5.14.0 in
./.local/lib/python3.10/site-packages (from mu-editor) (5.14.0)
Requirement already satisfied: gpiozero>=1.4.1 in
./.local/lib/python3.10/site-packages (from mu-editor) (1.6.2)
Requirement already satisfied: Pillow>=5.2.0 in
/usr/lib/python3/dist-packages (from mu-editor) (9.0.1) Requirement
already satisfied: requests>=2.19.1 in /usr/lib/python3/dist-packages
(from mu-editor) (2.25.1) Requirement already satisfied: semver>=2.8.0
in ./.local/lib/python3.10/site-packages (from mu-editor) (2.13.0)
Collecting pgzero==1.2 Using cached pgzero-1.2-py3-none-any.whl (69
kB) Collecting pyqt5==5.14.1 Using cached
PyQt5-5.14.1-5.14.1-cp35.cp36.cp37.cp38-abi3-manylinux2014_x86_64.whl
(63.5 MB) Requirement already satisfied: pyserial==3.4 in
./.local/lib/python3.10/site-packages (from mu-editor) (3.4)
Requirement already satisfied: qscintilla==2.11.4 in
./.local/lib/python3.10/site-packages (from mu-editor) (2.11.4)
Requirement already satisfied: pigpio>=1.40.post1 in
./.local/lib/python3.10/site-packages (from mu-editor) (1.78)
Requirement already satisfied: nudatus>=0.0.3 in
./.local/lib/python3.10/site-packages (from mu-editor) (0.0.5)
Requirement already satisfied: appdirs>=1.4.3 in
./.local/lib/python3.10/site-packages (from mu-editor) (1.4.4)
Requirement already satisfied: guizero>=1.1.0 in
./.local/lib/python3.10/site-packages (from mu-editor) (1.3.0)
Requirement already satisfied: matplotlib==2.2.2 in
./.local/lib/python3.10/site-packages (from mu-editor) (2.2.2)
Requirement already satisfied: pyflakes==2.0.0 in
./.local/lib/python3.10/site-packages (from mu-editor) (2.0.0)
Collecting kiwisolver>=1.0.1 Using cached
kiwisolver-1.4.2-cp310-cp310-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
(1.6 MB) Requirement already satisfied: six>=1.10 in
/usr/lib/python3/dist-packages (from matplotlib==2.2.2->mu-editor)
(1.16.0) Requirement already satisfied:
pyparsing!=2.0.4,!=2.1.2,!=2.1.6,>=2.0.1 in
/usr/lib/python3/dist-packages (from matplotlib==2.2.2->mu-editor)
(2.4.7) Collecting python-dateutil>=2.1 Using cached
python_dateutil-2.8.2-py2.py3-none-any.whl (247 kB) Collecting
cycler>=0.10 Using cached cycler-0.11.0-py3-none-any.whl (6.4 kB)
Requirement already satisfied: pytz in /usr/lib/python3/dist-packages
(from matplotlib==2.2.2->mu-editor) (2022.1) Requirement already
satisfied: numpy>=1.7.1 in ./.local/lib/python3.10/site-packages (from
matplotlib==2.2.2->mu-editor) (1.22.3) Collecting pygame<2.0,>=1.9.2
Using cached pygame-1.9.6.tar.gz (3.2 MB) Preparing metadata
(setup.py) ... error error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully. │ exit code: 1 ╰─> [12 lines of output]

  WARNING, No "Setup" File Exists, Running "buildconfig/config.py"
  Using UNIX configuration...
  
  /bin/sh: 1: sdl-config: not found
  /bin/sh: 1: sdl-config: not found
  /bin/sh: 1: sdl-config: not found
  Unable to run "sdl-config". Please make sure a development version of SDL is installed.
  
  Hunting dependencies...
  WARNING: "sdl-config" failed!
  [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.

I've installed python 3.10.4, reinstalled pip3 and updated it (tried to at least).
I've followed the instructions on mu's website.

I'm using Pop!_OS 22.04 LTS x86_64. I recently updated my pop os from 20.04 LTS. After updating, mu-editor worked for a while and now I got this problem. I'm assuming it's due to my messing up some sort of code.

Any help or suggestions r greatly appreciated!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

情徒 2025-02-02 23:31:51

我建议

  1. 尝试使用- 使用depreCecated = badtrack-on-build-bebail for for-code>
    示例pip install pygames - use-deprecated = backtrack-on-build-failures>

  2. 尝试我从另一个stackoverflow问题

    sudo apt-get安装python-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-ttf2.0-dev libsdl1.2-dev libsmpeg-dev libsmpeg-dev python-numpy libportmidi libportmidi-devmidi-devmidi-devmidi-devmidi-devmidi-devmidi-devmidi-devmidi-devmidi-devmidi-dimii-dimii-dimii-dimii-dimii dev在运行命令之前

I suggest either

  1. try running with --use-deprecated=backtrack-on-build-failures for
    example pip install pygames --use-deprecated=backtrack-on-build-failures
    OR

  2. Try this command which I got from another stackoverflow question

    sudo apt-get install python-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-ttf2.0-dev libsdl1.2-dev libsmpeg-dev python-numpy subversion libportmidi-dev ffmpeg libswscale-dev libavformat-dev libavcodec-dev libfreetype6-dev Before running your commands

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文