1. My development environment
Win10 64, Anaconda (Anaconda3-5.2.0 - Windows - x86_64, conda 4.4.10, Python3.6.4), PyCharm (PyCharm - community - 2018.2), pyinstaller (3.3.1),
System environment variables:
E: \ develop \ python \ Anaconda3
E: \ \ Anaconda3 \ Library develop \ python \ mingw - w64 \ bin
E: \ develop \ Anaconda3 \ \ python Library \ usr \ bin
E: \ develop \ Anaconda3 \ \ python Library \ bin
E: \ develop \ Anaconda3 \ \ python Scripts
2. PyCharm in External Tools pyinstaller Settings:

(according to the website will also try - F - w $FileNameWithoutExtension $. Py instead - F - w - hidden - import=queue $FileNameWithoutExtension $. Py, but still go wrong)
3. Use pyinstaller will be packaged as a simple tkinter program exe, packaging is successful, run successfully,
GUI3. Py code is as follows:
The from tkinter import *
# Tk to initialize ()
MyWindow=Tk ()
# enter the message loop
MyWindow. Mainloop ()
Packaging success:



The successful running:

show pyinstaller installation and setup should be no problem,
4. Write a simple pyqt5 program, run directly is successful in PyCharm:
GUI4. Py code is as follows:
The import sys
The from PyQt5 import QtWidgets, QtCore
App=QtWidgets. QApplication (sys. Argv)
The widget=QtWidgets. QWidget ()
Widget. The resize (720, 720)
Widget. SetWindowTitle (" hello, pyqt5 ")
The widget. The show ()
Sys. Exit (app. Exec_ ())
Results:

5. The above pyqt5 program use pyinstaller packaged as exe, packaging success:

Above the red part of the information copied below:
E: \ develop \ python \ Anaconda3 \ Scripts \ pyinstaller exe - F - w GUI4. Py
132 INFO: PyInstaller: 3.3.1
132 INFO: Python: 3.6.4 radar echoes captured
133 INFO: Platform: Windows - 10-10.0.15063 - SP0
133 INFO: demonstrate E: \ PythonWork \ PycharmProjects \ GUI4 \ GUI4 spec
INFO: 136 UPX is not available.
138 INFO: Extending the PYTHONPATH with paths
[' E: \ \ PythonWork \ \ PycharmProjects \ \ GUI4 ',
'E: \ \ PythonWork \ \ PycharmProjects \ \ GUI4']
138 INFO: checking Analysis
INFO: 138 Building Analysis because out00 - Analysis. The toc is non existent
INFO: 138 the Initializing module dependency graph...
INFO: 141 the Initializing module graph hooks...
142 INFO: Analyzing base_library.zip...
INFO: 3837 running Analysis out00 - Analysis. The toc
3839 INFO: Adding Microsoft.Windows.Com mon - Controls the to dependent assemblies of final executable
Required by E: \ develop \ python \ Anaconda3 \ python exe
4527 INFO: Caching module hooks...
4531 INFO: Analyzing E: \ PythonWork \ PycharmProjects \ GUI4 \ GUI4 py
INFO: 4618 Loading module hooks...
INFO: 4618 Loading module hooks "hook - encodings. Py"...
INFO: 4706 Loading module hooks "hook - pydoc. Py"...
INFO: 4708 Loading module hooks "hook - PyQt5. Py"...
INFO: 4711 Loading module hooks "hook - PyQt5. Qt. Py"...
INFO: 4712 Loading module hooks "hook - PyQt5. QtCore. Py"...
INFO: 4798 Loading module hooks "hook - PyQt5. QtGui. Py"...
INFO: 5276 Loading module hooks "hook - PyQt5. QtPrintSupport. Py"...
INFO: 5386 Loading module hooks "hook - PyQt5. QtWidgets. Py"...
INFO: 5392 Loading module hooks "hook - XML. Py"...
INFO: 5685 & for ctypes DLLs
5685 INFO: Analyzing the run - time hooks...
INFO: 5687 o the run - time hook 'pyi_rth_qt5. Py'
INFO: 5691 & for dynamic libraries
INFO: 6604 & for dense eggs
6604 INFO: Using Python library E: \ develop \ Python \ Anaconda3 \ python36 DLL
INFO: 6604 Found binding redirects:
[]
INFO: 6607 Warnings written to E: \ PythonWork \ PycharmProjects \ GUI4 \ build \ GUI4 \ warnGUI4 TXT
INFO: 6649 Graph cross - reference written to E: \ PythonWork \ PycharmProjects \ GUI4 \ build \ GUI4 \ xref - GUI4. HTML
6660 INFO: checking PYZ
INFO: 6660 Building PYZ because out00 - PYZ. Toc is non existent
INFO: 6660 Building PYZ (ZlibArchive) E: \ PythonWork \ PycharmProjects \ GUI4 \ build \ GUI4 \ out00 - PYZ PYZ
INFO: 7264 Building PYZ (ZlibArchive) E: \ PythonWork \ PycharmProjects \ GUI4 \ build \ GUI4 \ out00 - PYZ PYZ completed successfully.
7268 INFO: checking PKG
INFO: 7268 Building PKG because out00 - PKG. Toc is non existent
INFO: 7268 Building PKG (CArchive) out00 - PKG. PKG
INFO: 14986 Building PKG (CArchive) out00 - PKG. PKG completed successfully.
nullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnull