在ubuntu的pkg-config搜索路径中找不到包gobject-introspection-1.0

问题描述 投票:1回答:1

这是我将项目上传到heroku时遇到的错误。

remote:            running build_ext
remote:            Package gobject-introspection-1.0 was not found in the pkg-config search path.
remote:            Perhaps you should add the directory containing `gobject-introspection-1.0.pc'
remote:            to the PKG_CONFIG_PATH environment variable
remote:            No package 'gobject-introspection-1.0' found
remote:            Command '('pkg-config', '--print-errors', '--exists', 'gobject-introspection-1.0 >= 1.46.0')' returned non-zero exit status 1.
remote:            
remote:            Try installing it with: 'sudo apt install libgirepository1.0-dev'
remote:            
remote:            ----------------------------------------
remote:        Command "/app/.heroku/python/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-tqn048tg/PyGObject/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-6agyazal-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-tqn048tg/PyGObject/
remote:  !     Push rejected, failed to compile Python app.
remote:
remote:  !     Push failed

我已经安装了libgirepository1.0。成功安装了requirements.txt中的软件包。

python flask pygobject
1个回答
0
投票

我有同样的问题。我已经安装了gob软件包并将其添加到PKG_CONFIG_PATH环境变量中,但没有任何区别。我仍然收到此消息:在pkg-config搜索路径中找不到软件包gobject-introspection-1.0。也许您应该添加包含“ gobject-introspection-1.0.pc”的目录到PKG_CONFIG_PATH环境变量找不到软件包“ gobject-introspection-1.0”。

任何人的猜测?

© www.soinside.com 2019 - 2024. All rights reserved.