Help us understand the problem. What is going on with this article?

PySide2をUbuntuにインストールする

More than 1 year has passed since last update.

PySide2のインストール手順を忘れないようにメモ
Pyenv + Virtualenv環境を想定

新しい環境をつくる

PySide2のバージョンの関係により、Python3.5.2を使用する
ただし、そのPythonは-fPICオプション付きでビルドされている必要がある
さもなくば同時にビルドされるshibokenのビルドでコケる

$ env PYTHON_CFLAGS=-fPIC pyenv install 3.5.2
$ pyenv virtualenv 3.5.2 hoge
$ pyenv local hoge

依存パッケージをインストールする

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  追記) Sphinxを入れないとdocのビルドでこけます
$ pip install sphinx

GitリポジトリをCloneしてビルド実行

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

参考サイト

Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away