7👍
✅
ANSWER IS NOW IN THE POST TAGGED IN COMMENT ABOVE !!!!
Have a look there => Python cannot install PyGObject
Ok I just managed it !
To install PyGObject in virtrualenv, give up with pip.
-
Install PyGObject system-wide (with your package manager or compile it manually). For example, in my case :
sudo pacman -Suy python-gobject2
-
Link it in your virtualenv :
ln -s /usr/lib/python3.4/site-packages/gobject* /WHEREVER/IS/YOUR/VIRTUALENV/venv/lib/python3.4/site-packages/
-
You might need to link some other modules (in my case glib) :
ln -s /usr/lib/python3.4/site-packages/glib* /WHEREVER/IS/YOUR/VIRTUALENV/venv/lib/python3.4/site-packages/
You might find some helpful infos about system-wide and virtualenv installations and interactions between modules here :
virtualenv: Specifing which packages to use system-wide vs local
Source:stackexchange.com