Installing PySide on a Debian-based system is much easier with the synaptic package manager. Issuing the following command will fetch and install the latest stable version available in the aptitude distribution:
sudo apt-get install python-pyside
On an RPM-based system, you can use the RPM-based distribution, yum, as follows:
yum install python-pyside pyside-tools
If you want to make sure that PySide is installed properly on your system, issue the following commands in the Python shell environment, as shown in Figure 1. The import pyside
command should not return any errors.
PySide.__version__
should output something similar to 1.1.2
:
Let's move on to see how we can build PySide from scratch.