如何在python3.7的环境下装python3.5+Eric6+GUI+如何在pycharm中配置external tool(Qt Designer)

原材料:

1. 已经安装好的anaconda;

2.eric6-6.1.7.zip

3.PyQt5-5.6-gpl-Py3.5-Qt5.6.0-x64-2.exe

 

 

第一步

安装Anaconda3-2018.12-Windows-x86_64.exe

注意好环境变量

C:\Users\UserName\Anaconda3
C:\Users\UserName\Anaconda3\Library\bin
C:\Users\UserName\Anaconda3\Scripts

第二步

使用conda创建虚拟环境Eric

方案1

conda create -n Eric python=3.5

如果失败可以考虑

conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/msys2/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
conda config --set show_channel_urls yes

方案2

第三步

安装PyQt5-5.6-gpl-Py3.5-Qt5.6.0-x64-2.exe

安装位置为:

C:\Users\NameXXXX\Anaconda3\envs\Eric【这一步比较坑!!!要安装在刚才创建的虚拟环境中】

第四步

将下载好的 eric6-6.1.7.zip 文件解压到 

C:\Users\NameXXXX\Anaconda3\envs\Eric\Lib\site-packages 目录下【这一步比较坑!!!要解压在刚才创建的虚拟环境中】

第五步

 

python install.py install

【这里请使用黑色命令框cmd,然后用activate Eric指令激活虚拟环境,再执行python install.py install】

Checking dependencies
Python Version: 3.5.6
Found PyQt5
Found pyuic5
Found QScintilla2
Found QtGui
Found QtNetwork
Found QtPrintSupport
Found QtSql
Found QtSvg
Found QtWidgets
Qt Version: 5.6.0
sip Version: 4.18
PyQt Version: 5.6
QScintilla Version: 2.9.2
All dependencies ok.

 

最后一步:

创建快捷方式到桌面上:C:\Users\NameXXXX\Anaconda3\envs\Eric\Scripts\eric6.bat【Eric是虚拟环境】

 

 

2020年2月13日11:33:213

Pycharm中如何配置QT Designer

 

`C:\Users\xxx\Anaconda3\envs\Eric\Lib\site-packages\PyQt5\designer.exe`

`$FileDir$`

 

 

`C:\Users\xxx\Anaconda3\envs\Eric\Lib\site-packages\PyQt5\pyuic5.bat`
`-x $FileName$ -o Ui_$FileNameWithoutExtension$.py`
`$FileDir$`

 
posted @ 2019-04-06 23:18  bH1pJ  阅读(53)  评论(0编辑  收藏  举报