我想将matplotlib和numpy添加到我的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有人能帮我解决这个问题吗?
发布于 2021-12-16 07:37:32
我认为最好的解决方案是使用这个回购https://github.com/flatpak/flatpak-builder-tools的pip助手。
它不仅添加了所请求的库,还添加了它的所有依赖项。阅读README在回购中的pip工具。您可以获得一个json文件,只需将其包含到您的平台清单(不需要复制和粘贴)。只需将json结果复制到清单旁边,并将文件名作为字符串添加到模块部分。
https://stackoverflow.com/questions/70358727
复制相似问题