Make a note not to forget the installation procedure of PySide2 Assuming Pyenv + Virtualenv environment
Use Python 3.5.2 due to PySide2 version However, that Python must be built with the -fPIC option Otherwise it will be moss with the shiboken build that will be built at the same time
$ env PYTHON_CFLAGS=-fPIC pyenv install 3.5.2
$ pyenv virtualenv 3.5.2 hoge
$ pyenv local hoge
Quoted as is from https://github.com/PySide/pyside2/wiki/Dependencies
$ sudo apt-get install build-essential git cmake qt5-default libxml2 libxslt1.1 python-dev qtbase5-dev
$ sudo apt-get install qttools5-dev-tools libqt5clucene5 libqt5concurrent5 libqt5core5a libqt5dbus5 libqt5designer5 libqt5designercomponents5 libqt5feedback5 libqt5gui5 libqt5help5 libqt5multimedia5 libqt5network5 libqt5opengl5 libqt5opengl5-dev libqt5organizer5 libqt5positioning5 libqt5printsupport5 libqt5qml5 libqt5quick5 libqt5quickwidgets5 libqt5script5 libqt5scripttools5 libqt5sql5 libqt5sql5-sqlite libqt5svg5 libqt5test5 libqt5webkit5 libqt5widgets5 libqt5xml5 libqt5xmlpatterns5 libqt5xmlpatterns5-dev
#(4/10 postscript)If you don't include Sphinx, you can build doc.
$ pip install sphinx
$ git clone --recursive https://github.com/pyside/pyside2-setup
$ python ./pyside2-setup/setup.py
Recommended Posts