簡體   English   中英

將 matplotlib 和 numpy 添加到 flatpak gnome-builder 項目中

[英]Add matplotlib and numpy to flatpak gnome-builder project

我想將 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

誰能幫我解決它?

我認為最好的解決方案是使用此 repo https://github.com/flatpak/flatpak-builder-tools中的 pip 助手

它不僅添加了請求的庫,還添加了它的所有依賴項。 閱讀 pip 工具的存儲庫中的自述文件。 您將獲得一個 json 文件,之后您可以簡單地將其包含到您的 flatpak 清單中(無需復制和粘貼)。 只需復制清單旁邊的 json 結果並將文件名作為字符串添加到模塊部分

暫無
暫無

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

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