LoginSignup
6
6

More than 5 years have passed since last update.

Mac OS X Marvericks (10.9.2)にhomebrewでPyQt5をインストールする

Last updated at Posted at 2014-03-08

はじめに

PyQtとは,Digia社(かつてはNokiaでしたが,2012/8/9にDigiaに売却)のQtアプリケーションフレームワークのPythonバインディングです.PyQt5は,Qt v5のサポートになります.

本ページでは,2014年3月時点で最新版のMac OS X Marvericks (10.9.2)に対して,homebrewを使ってPyQt5をインストールする手順を紹介します.

インストール手順

# 1. PyQt5 の依存である sip をインストール
brew install sip

# 2. PyQt5 を python2.7 でビルド,インストール (python3 だとエラーになります)
brew install pyqt5 --with-python --without-python3

# 3. PYTHONPATH の追加
export PYTHONPATH=/usr/local/lib/python2.7/site-packages:$PYTHONPATH
6
6
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
6
6