0

I just installed PyQt5 below command.

brew install pyqt5

Successfully, To install is end.

But "from PyQt5.QtCore import *" in Python code cannot import module.

Output message is ImportError: No module named 'PyQt5'

So I check it 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 is problem in situation. how can I fix that problem?.

byzz
  • 364
  • 1
  • 4
  • 17
  • This question is almost the same. http://stackoverflow.com/questions/30145751/python3-cant-find-and-import-pyqt5. – qweruiop Jun 19 '15 at 15:14

1 Answers1

0

All the files under your '/usr/local/lib/python3.4/site-packages/PyQt5' are linked to another folder. Please make sure the linked files exist, or add the linked folder to sys.path and try "import PyQt5" again

Sting Jia
  • 145
  • 1
  • 8