Jos*_*rre 5 python terminal installation homebrew pyqt
我正在使用brew在python3上安装PyQt,但我似乎无法让它工作
我跑了brew install pyqt并brew doctor修复了所有可能的错误但仍然在运行我的代码时我一直在努力
ImportError: No module named 'PyQt4'
Run Code Online (Sandbox Code Playgroud)
如果我运行echo $PATH即时得到/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/git/bin
有人可以指导我解决这个问题吗?我也在使用PyCharm但是如果我在终端运行python3那么我仍然会得到同样的错误import pyqt
请帮助我:(我真的很新,但我尝试了一切,我可以在谷歌找到
谢谢!
PD:运行brew test pyqt不会带来错误但不会打开.我还安装了python3和brew,我正在运行它/usr/local/Cellar/python3/3.4.3/Frameworks/Python.framework/Versions/3.4/bin/python3.4
如果你想在Python 3中使用PyQt4,你应该使用这个命令告诉自制软件:
brew install PyQt --with-python3
| 归档时间: |
|
| 查看次数: |
15786 次 |
| 最近记录: |