How To Install Pygtk Within Virtualenv?
I installed ipython in a virtual env (1.13 with 2.7.2) and tried ipython -gui=gtk but still got the basic terminal interface with no %paste support for example. Now I tried install
Solution 1:
Since you are running a debian-based distribution; you can save yourself some headaches and simply sudo apt-get install ipython
(and sudo apt-get install ipython3
if you want to play with Python 3).
This will ensure that the proper GTK bindings are installed as well. This is the most supported way.
Latest versions of ipython have auto-detection of virtualenvironments.
Solution 2:
I first installed gi with pip (on ubuntu) and got the same error, without a virtualenv. My solution was to uninstall gi:
sudo -H pip uninstall gi
and then install using:
sudo apt-get install --reinstall python-gi
Post a Comment for "How To Install Pygtk Within Virtualenv?"