LoginSignup
7
8

More than 5 years have passed since last update.

PyQt5インストール

Last updated at Posted at 2016-10-15
1 / 8

1. pipを使ってインストール


1.1. インストール

pip install pyqt5

(もしくはpip3)


2.2. 確認

>>> import PyQt5.QtCore
>>> PyQt5.QtCore.QT_VERSION_STR
'5.7.0'

2. [Mac] brewを使ってインストール


2.1. インストール

(sipもインストールされます)

# インストール
brew install pyqt5
# リンク作成(環境に合わせてパス変更)
ln -s /usr/local/Cellar/pyqt5/5.6/lib/python3.5/site-packages/PyQt5/ ~/.pyenv/versions/anaconda3-2.5.0/lib/python3.5/site-packages/

2.2. 確認

Python 3.5.2 |Anaconda 2.5.0 (x86_64)| (default, Jul  2 2016, 17:52:12) 
[GCC 4.2.1 Compatible Apple LLVM 4.2 (clang-425.0.28)] on darwin
In[2]: import PyQt5.QtCore
In[3]: PyQt5.QtCore.QT_VERSION_STR
Out[3]: 
'5.6.1'

現時点では、pipでインストールした方が新しいバージョンです

7
8
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
7
8