How to install PyGObject with Python 3 support

独自空忆成欢 提交于 2020-01-01 10:43:29

问题


I've been trying to install PyGObject using a variety of methods. First, using apt-get but that only installs it for Python 2.x. Next I attempted to compile it myself but I have been having problems getting it to compile for Python 3.

Does anyone know how to install it?


回答1:


First you need to install python3 and the development headers.

Then you need to tell configure to use python3:

PYTHON=python3 ./configure

Compile and install normally

make
make install

You should then be able to use pygobject from python3.



来源:https://stackoverflow.com/questions/7065310/how-to-install-pygobject-with-python-3-support

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!