python - Mac python3 can't import "PyQt5" -


i installed pyqt5 below command.

brew install pyqt5 

successfully, install end.

but "from pyqt5.qtcore import *" in python code cannot import module.

output message importerror: no module named 'pyqt5'

so check python path in command line. (python3)

python environment variables

you can find line, '/usr/local/lib/python3.4/site-packages/pyqt5'

'/usr/local/lib/python3.4/site-packages/pyqt5' include files below.

file list in pyqt5

what problem in situation. how can fix problem?.

all files under '/usr/local/lib/python3.4/site-packages/pyqt5' linked folder. please make sure linked files exist, or add linked folder sys.path , try "import pyqt5" again


Comments