簡體   English   中英

安裝 mu 編輯器時,我收到錯誤元數據生成失敗和錯誤子進程退出錯誤。 我已經更新了 pip,正在運行 python 3.10.4

[英]while installing mu editor, i get error metadata-generation-failed and error subprocess-exited-with-error. I've updated pip, am running python 3.10.4

默認為用戶安裝,因為普通站點包不可寫已滿足要求:mu-editor in./.local/lib/python3.10/site-packages (1.0.3) 已滿足要求:pycodestyle==2.4.0 in ./.local/lib/python3.10/site-packages(來自mu-editor)(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 (from mu-editor) (1.6.2) 要求已經滿足:Pillow>=5.2.0 in /usr/lib/python3 /dist-packages(來自 mu-editor)(9.0.1)要求已滿足:/usr/lib/python3/dist-packages 中的請求>=2.19.1(來自 mu-editor)(2.25.1)已滿足要求: semver>=2.8.0 in./.local/lib/python3.10/site-packages (from mu-editor) (2.13.0) 收集 pgzero==1.2 使用緩存的 pgzero-1.2-py3-none -any.whl (69 kB) 使用緩存的 PyQt5-5.14.1-5.14.1-cp35.cp36.cp37.cp38-abi3-manylinux2014_x86_64.whl (63.5 MB) 收集 pyqt5==5.14.1 已滿足要求:pyserial= =3.4 in./.local/lib/python3.10/site-packages (from mu-editor) (3.4) 要求已經滿足:qscintilla==2.11.4 in./.local/lib/python3.10/site-包(來自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 (from mu-editor) (1.4.4) 要求已經滿足:guizero>=1.1.0 in./.local/lib/python3.10/site-packages (from 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在./.local/lib/python3.10/site-pa ckages (from 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-packages (from 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-packages (from 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) 收集 cycler>=0.10 使用緩存的 cycler-0.11:0-py3-none-any.whl (6.4 kB) 要求已經滿足。 /usr/lib/python3/dist-packages 中的 pytz(來自 matplotlib==2:2.2->mu-editor)(2022.1) 要求已經滿足。 numpy>=1.7.1 in./.local/lib/python3.10/site-packages (from matplotlib==2.2.2->mu-editor) (1,22.3) 采集pygame<2.0,>=1.9.2
使用緩存的 pygame-1.9.6.tar.gz (3.2 MB) Preparing metadata (setup.py)... error error: subprocess-exited-with-error × python setup.py egg_info 沒有成功運行。 │ 退出碼:1 ╰─> [12行輸出]

 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

× 生成 package 元數據時遇到錯誤。 ╰─> output見上。

注意:這是上面提到的 package 的問題,而不是 pip。提示:詳情見上文。

我已經安裝了 python 3.10.4,重新安裝了 pip3 並更新了它(至少嘗試過)。 我已按照 mu網站上的說明進行操作。

我正在使用 Pop._OS 22.04 LTS x86_64。 我最近從 20.04 LTS 更新了我的流行操作系統,更新后。 mu-editor 工作了一段時間,現在我遇到了這個問題。 我假設這是由於我弄亂了某種代碼。

任何幫助或建議 r 非常感謝!

我建議

  1. 嘗試使用--use-deprecated=backtrack-on-build-failures運行,例如pip install pygames --use-deprecated=backtrack-on-build-failures

  2. 試試這個我從另一個 stackoverflow 問題得到的命令

    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在運行命令之前

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM