我想將 matplotlib 和 numpy 添加到我的 gnome-builder 專案并遵循解決方案(將 Gnome Builder 與 Python 一起使用)。但是當我運行它時會輸出如下錯誤:
WARNING: Discarding file:///run/build/python3-matplotlib/matplotlib-3.5.1.tar.gz. Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
ERROR: Could not find a version that satisfies the requirement matplotlib (from versions: 3.5.1)
ERROR: No matching distribution found for matplotlib
Error: module python3-matplotlib: Child process exited with code 1
有人可以幫我解決嗎?
uj5u.com熱心網友回復:
我認為最好的解決方案是使用這個 repo https://github.com/flatpak/flatpak-builder-tools 中的 pip helper
它不僅添加了請求的庫,還添加了它的所有依賴項。閱讀該 repo 中的 README 以獲取 pip 工具。您將獲得一個 json 檔案,您可以在之后簡單地將其包含到您的 flatpak 清單中(無需復制和粘貼)。只需復制清單旁邊的 json 結果并將檔案名作為字串添加到模塊部分
轉載請註明出處,本文鏈接:https://www.uj5u.com/yidong/383422.html
標籤:Python 麻木的 matplotlib 平板包装 侏儒建造者
