我为使用Google日历的api绘制的应用程序使用了Flatpak。我为应用程序提供了一个依赖项的json文件,其中包括由依赖项生成脚本生成的python依赖项。当我尝试构建我的应用程序时,出现以下错误:
Looking in links: file:///home/username/Projects/CAENhelp
Collecting google-api-python-client
Could not find a version that satisfies the requirement google-api-python-client (from versions: )
No matching distribution found for google-api-python-client
我尝试将所有依赖项安装在虚拟环境中,并且在对pip进行一些更新之后它们安装得很好。从那时起,我已经重启了机器,但是我的应用程序仍然无法构建。
{
"name": "python3-google-api-python-client",
"buildsystem": "simple",
"build-commands": [
"pip3 install --no-index --find-links=\"file://${PWD}\" --prefix=${FLATPAK_DEST} google-api-python-client google-auth-httplib2 google-auth-oauthlib"
],
"sources": [
{}
]
}
这是我遇到问题的脚本生成的flatpak json的一部分。如果有帮助,我可以发布更多。