You can download the source code for your own compilation, or directly through the PIP3 directly installed.
Because the MAC system is installed Python2 by default, you need to install Python3 first, the following steps are described below.
1. Install Xcode. This is nothing to say, most of the development of Mac without this, open AppStore download installation can.
2. Installation Homebrew
Execute in Terminal
" $ (curl-fssl https://raw.githubusercontent.com/Homebrew/install/master/install) "
Wait for the installation to complete. When you are finished, you can use
Brew Doctor
Test the results of the installation.
3. Installing Python3
Install Python3
The installation is complete using the Python3 test to enter the Python interactive run panel, if available, the installation succeeds.
4. Installing PYQT5
If you want to install the latest version, use the command directly
Install PyQt5
To install a specific version, such as 5.7.1, you can specify the version to be installed by-V
Install -v pyqt5==5.7. 1
You need to download larger files and wait patiently for the installation to complete.
The development environment of PYTHON3+PYQT5 built under Mac