PyCharm配置QtDesigner、PyUIC、PyInstaller编译PyQt5成EXE

在PyCharm里打开Settings → Tools → External Tools添加如下:

Name:QtDesigner
Program:C:\Python36\Lib\site-packages\pyqt5-tools\designer.exe
Working directory:$FileDir$

Name:PyUIC
Program:C:\Python36\python3.exe
Arguments:-m PyQt5.uic.pyuic $FileName$ -o $FileNameWithoutExtension$.py
Working directory:$FileDir$

Name:PyInstaller
Program:C:\Python36\Scripts\pyinstaller.exe
Arguments:--paths C:\Python36\Lib\site-packages\PyQt5\Qt\bin -F -w $FileNameWithoutExtension$.py
Working directory:$FileDir$

你可能感兴趣的:(Python)