Py3cairo通过Brew安装在mac上,但Pygobject3说' pycairo'在安装时找不到

时间:2017-07-19 05:30:27

标签: python python-3.x gtk3 pygobject

当我尝试安装py3cairo时会发生这种情况(因为它已经安装):

brew install py3cairo
Updating Homebrew...
Warning: py3cairo 1.10.0_3 is already installed
brew upgrade py3cairo
Updating Homebrew...
Error: py3cairo 1.10.0_3 already installed

然而,当我运行pygobject 3的配置批处理文件时,这就是我得到以下输出:

checking for pkg-config... /opt/local/bin/pkg-config
checking pkg-config is at least version 0.16... yes
checking for GLIB - version >= 2.38.0... yes (version 2.52.3)
checking for FFI... yes
checking for GIO... yes
checking for GI... yes
checking for gobject-introspection... yes
checking for CAIRO... yes
checking for PYCAIRO... no
configure: error: Package requirements (py3cairo >= 1.11.1
        ) were not met:

No package 'py3cairo' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables PYCAIRO_CFLAGS
and PYCAIRO_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

包的要求是py3cairo> = 1.11.1,但是我尝试用brew卸载py3cairo并重新安装它,它仍然总是安装1.10.0_3,这让我认为这必须是最高版本对于mac。

如何在我的Mac Seirra上安装pygobject3?

1 个答案:

答案 0 :(得分:0)

  

configure:error:包要求(py3cairo> = 1.11.1

https://github.com/Homebrew/homebrew-core/blob/master/Formula/py3cairo.rb#L4

  

url" https://cairographics.org/releases/pycairo-1.10.0.tar.bz2"

版本太旧了。