0

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

谁能帮我解决它?

4

1 回答 1

0

我认为最好的解决方案是使用这个 repo 中的 pip 助手https://github.com/flatpak/flatpak-builder-tools

它不仅添加了请求的库,还添加了它的所有依赖项。阅读 pip 工具的 repo 中的自述文件。您将获得一个 json 文件,之后您可以简单地将其包含到您的 flatpak 清单中(无需复制和粘贴)。只需复制清单旁边的 json 结果并将文件名作为字符串添加到模块部分

于 2021-12-16T07:37:32.627 回答