成功运行brew install pyqt
并更新我的python路径之后:
export PYTHONPATH=/usr/bin/python
export PYTHONPATH=/usr/local/lib/python2.7/site-packages:$PYTHONPATH
但我仍然不断获得ImportError: No module named PyQt5
。
更糟糕的是,当我使用Homebrew安装的python3来运行我的程序时,我仍然会遇到像ImportError: dlopen(/usr/local/lib/python2.7/site-packages/sip.so, 2): Symbol not found: _PyCObject_Type