Install Python3 and PyQt5 on mac

I switched to Python3 and PyQt5 on mac Sierra because of ImportError while importing modules from Packages. It is due to SIP (System Integrity Protection) that Apple introduced in recent OS.


from PySide2 import QtGui
ImportError: dlopen(/Users/usr/Others/PySide2/QtGui.so, 2): Library not loaded: @rpath/libpyside2.2.0.dylib
Referenced from: /Users/usr/Others/PySide2/QtGui.so
Reason: image not found



Easiest way I found to install python and Pyqt is using brew and pip3

brew install python3
pip3 install pyqt5

Directory where Python3 is install

/usr/local/Cellar/python3/3.6.3/Frameworks/Python.framework/Versions/3.6/bin/python3.6


Comments

Popular posts from this blog

Bounding Box in PIL (Python Image Library)

Dictionary vs KeyValuePair vs Struct - C#

Rendering order and Z-sorting