I have been trying to use the pyqt5 library for close to over an 5 hours now, it keeps on saying:-
from PyQt5.QtGui import *
ImportError: dlopen(/usr/local/lib/python3.6/site-packages/PyQt5/QtGui.so, 2): Library not loaded: @rpath/QtGui.framework/Versions/5/QtGui
Referenced from: /usr/local/lib/python3.6/site-packages/PyQt5/QtGui.so Reason: image not found
Finally got it working , after 1 million fruitless tries.
LDFLAGS=-L/usr/local/opt/qt/lib CPPFLAGS=-I/usr/local/opt/qt/include pip3 install PyQt5
all on 1 line. Then viola !
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With