我当前环境为MacOS10.13.6+python3.65+qt5.11.1+eric6 18.08,其它版本不排除有兼容性问题。
1.安装Anaconda3(集成了QtDesigner)
https://mirrors.tuna.tsinghua.edu.cn/anaconda/archive/
2.安装pyqt模块
使用pip3 install pyqt5安装
3.安装eric6
在官网选择一个版本下载安装https://sourceforge.net/projects/eric-ide/files/eric6/stable/。
我这里下载的是eric6-18.08.zip,将安装包解压然后执行安装文件install.py
使用如下命令:
cd ~/Downloads/
unzip eric6-18.08.zip
sudo python3 ./eric-18.08/install.py
安装完成后打开eric进行简要设置。
1.在eric6的偏好设置里面 Debugger>Python2和Python3分别中设置python2和Python3的解释器路径,
2.在Plugins>Plugin Repository中安装Jedi自动补全插件并在偏好设置Editor>Autocompletion中开启。
3.将偏好设置中的Qt>Qt tools路径设置为QTdesign的路径(Anaconda3安装目录下的bin目录)
到此环境基本搭建完成