在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$