Qiita Teams that are logged in
You are not logged in to any team

Log in to Qiita Team
Community
OrganizationEventAdvent CalendarQiitadon (β)
Service
Qiita JobsQiita ZineQiita Blog
7
Help us understand the problem. What are the problem?

More than 5 years have passed since last update.

@twaka

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

はじめに

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
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
7
Help us understand the problem. What are the problem?