首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >将matplotlib和numpy添加到平板侏儒构建器项目中。

将matplotlib和numpy添加到平板侏儒构建器项目中。
EN

Stack Overflow用户
提问于 2021-12-15 05:12:41
回答 1查看 175关注 0票数 0

我想将matplotlib和numpy添加到我的gnome-builder项目中,并遵循解决方案(与Python的结合)。但是当我运行它时,它输出的错误如下所示:

代码语言:javascript
复制
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

有人能帮我解决这个问题吗?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2021-12-16 07:37:32

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

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

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/70358727

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档