【发布时间】:2015-05-09 22:34:59
【问题描述】:
我用 brew 安装了 PyQt5,它似乎正确地结束了安装过程。
$ brew install pyqt5 --with-python3
问题是我无法导入:
Python 3.4.3 (v3.4.3:9b73f1c3e601, Feb 23 2015, 02:52:03)
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import PyQt5
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named 'PyQt5'
我从哪里开始寻找它为什么不起作用?我认为它会使用我使用的 brew 命令将其自动添加到 Python 中。
【问题讨论】:
标签: macos python-3.x pyqt5