开发者

How to install PyGObject with Python 3 support

开发者 https://www.devze.com 2023-03-28 08:38 出处:网络
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 h

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?


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号