Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/357.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 在ubuntu的pkg config搜索路径中找不到包gobject-introspection-1.0_Python_Flask_Pygobject - Fatal编程技术网

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

Python 在ubuntu的pkg config搜索路径中找不到包gobject-introspection-1.0,python,flask,pygobject,Python,Flask,Pygobject,这是我在将项目上载到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.

这是我在将项目上载到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中的软件包已成功安装。

首先,我将尝试安装
libgirepository1.0
的开发者软件包。这取决于Linux发行版如何实现,以及开发人员包的确切名称:

  • Fedora、CentOS、RHEL等:gobject内省开发
  • Debian、Ubuntu、Mint等:libgirepository1.0-dev
  • 拱门:gobject内省
如果这没有帮助,那么您可能会从
requirements.txt
中丢失一些软件包,例如,请参见:


要知道您缺少了什么,我们需要更多地了解您的配置。

首先,我会尝试安装
libgirepository1.0
的开发包。这取决于Linux发行版如何实现,以及开发人员包的确切名称:

  • Fedora、CentOS、RHEL等:gobject内省开发
  • Debian、Ubuntu、Mint等:libgirepository1.0-dev
  • 拱门:gobject内省
如果这没有帮助,那么您可能会从
requirements.txt
中丢失一些软件包,例如,请参见:


要了解您缺少的内容,我们需要了解有关您的配置的更多信息。

这是否回答了您的问题?这回答了你的问题吗?