[PYTHON] Install PySide2 on Ubuntu

Make a note not to forget the installation procedure of PySide2 Assuming Pyenv + Virtualenv environment

Create a new 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

Install dependent packages

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

Clone the Git repository and run the build

$ git clone --recursive https://github.com/pyside/pyside2-setup
$ python ./pyside2-setup/setup.py

Reference site

Recommended Posts

Install PySide2 on Ubuntu
Install TensorFlow on Ubuntu
Install JModelica on Ubuntu
Install Python 3.3 on Ubuntu 12.04
Install Theano on Ubuntu 12.04
Install angr on Ubuntu 18.04
Install pip / pip3 on Ubuntu
Install GoLand IDE on Ubuntu
Install OpenCV on Ubuntu + python
wsl Install PostgreSQL on Ubuntu 18.04
[ROS] Install ROS (melodic) on Ubuntu (18.04)
Install Caffe on Ubuntu 14.04 (GPU)
Install Docker on WSL Ubuntu 18.04
Install CUDA10.1 + cuDNN7.6.5 + tensorflow-2.3.0 on Ubuntu 18.04
Install Caffe on Ubuntu 14.04 (CPU mode)
Install Mecab and mecab-python3 on Ubuntu 14.04
Install and run dropbox on Ubuntu 20.04
Install OpenCV and Chainer on Ubuntu
Install CUDA 8.0 and Chainer on Ubuntu 16.04
Install Python 3.8 on Ubuntu 20.04 (OS standard)
Install fabric on Ubuntu and try
Install Python 3.9 on Ubuntu 20.04 (OS standard?)
Install confluent-kafka for Python on Ubuntu
Install Python 2.7 on Ubuntu 20.04 (OS standard?)
How to install Go on Ubuntu
ROS study # 1 Install ros-noetic on ubuntu 20.04
Shebang on Ubuntu 20.04
Steps to install Python environment on Ubuntu
Install Pleasant on Ubuntu 20.04 (.NetCore3.1 / PostgreSQL version)
Install ubuntu on 32bit UEFI Ultra Notebook
Install Caffe running 3D-CNN on clean Ubuntu 14.04
Install Puppet Master and Client on Ubuntu 16.04
How to install php7.4 on Linux (Ubuntu)
Install pyenv and Python 3.6.8 on Ubuntu 18.04 LTS
Install mecab on Marvericks
Install Tensorflow on Mac
Install python on WSL
Install Faiss on CentOS 7
Install pyenv on mac
Install pip on Mavericks
Install Python on Pidora.
Install mongodb on termux
Install Scrapy on python3
Install python package in personal environment on Ubuntu
Install docker on Fedora31
[Procedure memo] Install Python3 + OpenSSL locally on Ubuntu
[Note] Install wxPython 3.x on Linux Mint (Ubuntu)
Install numba on CentOS 7.2
Install Python on Mac
Install Python 3 on Mac
Install Plone (4.3.6) on MacOSX (10.10.3)
Install Python3.4 on CentOS 6.6
Install Docker (Ubuntu 18.04 LTS)
Install gensim on Marvericks
Install GPU-enabled LightGBM (Ubuntu 16.04)
Install the latest Cuda + CuDNN on Ubuntu 18.04 @ Spring 2020
Install Anaconda on Windows 10
Install numpy on Marvericks
Install python on windows
Install enebular-agent on Chromebook
Install pycuda on Windows10