Search code examples
ubuntupyside

Recommended way for installing PySide on Ubuntu


What is the recommended way of setting up PySide for development in Ubuntu?

  1. sudo apt-get install python3-pyside?
  2. sudo pip install pyside?
  3. sudo easy_install pyside?

Solution

  • All your options will work. It depends what you are trying to achieve with it and how portable it should be. What usually "just" works without problems is to create a virtualenv first:

    apt-get -f install python-virtualenv
    virtualenv ~/mypython2.7
    

    With that you can simply use easy_install as recommended to install PySide in your local virtual environment:

    ~/mypython2.7/bin/easy_install PySide
    

    If you want to build PySide, follow the extensive instructions on their github page