Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

[PySide] How to install correctly on Ubuntu 13.10



  • I'm running Ubuntu 13.10 with Python 3.3.4, installed via pyenv.

    When I run this command:
    sudo apt-get install python3-pyside
    PySide is installed to /usr/lib/python3/dist-packages/PySide.

    I can make a symlink to that directory in my pyenv Python 3.3's site-packages directory. This allows me to import PySide in Python, but I get an ImportError when trying to import QtGui from PySide:
    ImportError: cannot import name QtGui

    Ditto for similar modules as well. The PySide directory includes the QtGui.cpython-33m-i386-linux-gnu.so file, but it's not being accessed, I guess. I have fiddled with PYTHONPATH and LD_LIBRARY_PATH without success. I can't find much available information on this, so any advice would be appreciated.


Log in to reply