3
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

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

Last updated at Posted at 2017-04-07

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

参考サイト

3
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?