AJ0*_*200 6 python linux pygobject python-3.x
我一直在尝试使用各种方法安装PyGObject.首先,使用apt-get但仅为Python 2.x安装它.接下来我尝试自己编译它,但是我在编译Python 3时遇到了问题.
有谁知道如何安装它?
首先,您需要安装python3和开发标头。
然后,您需要告诉configure使用python3:
PYTHON=python3 ./configure
Run Code Online (Sandbox Code Playgroud)
正常编译安装
make
make install
Run Code Online (Sandbox Code Playgroud)
然后,您应该能够使用python3中的pygobject。