Windows PowerShell
版权所有(C) Microsoft Corporation。保留所有权利。
安装最新的 PowerShell,了解新功能和改进!https://aka.ms/PSWindows
(.venv) PS E:\PyCharmObject\emailSingUp\SignUp> python -m venv packaging_env
(.venv) PS E:\PyCharmObject\emailSingUp\SignUp> packaging_env\Scripts\activate
(packaging_env) PS E:\PyCharmObject\emailSingUp\SignUp> pyinstaller -F -w -i outlook.ico AccountRegisterApp.py
116 INFO: PyInstaller: 6.15.0, contrib hooks: 2025.8
116 INFO: Python: 3.9.13
131 INFO: Platform: Windows-10-10.0.26100-SP0
131 INFO: Python environment: E:\DEMO\python-demo\.venv
131 INFO: wrote E:\PyCharmObject\emailSingUp\SignUp\AccountRegisterApp.spec
131 INFO: Module search paths (PYTHONPATH):
['E:\\DEMO\\python-demo\\.venv\\Scripts\\pyinstaller.exe',
'E:\\Program Files\\Python3.9\\python39.zip',
'E:\\Program Files\\Python3.9\\DLLs',
'E:\\Program Files\\Python3.9\\lib',
'E:\\Program Files\\Python3.9',
'E:\\DEMO\\python-demo\\.venv',
'E:\\DEMO\\python-demo\\.venv\\lib\\site-packages',
'E:\\DEMO\\python-demo\\.venv\\lib\\site-packages\\setuptools\\_vendor',
'E:\\PyCharmObject\\emailSingUp\\SignUp']
380 INFO: checking Analysis
401 INFO: Building because inputs changed
401 INFO: Running Analysis Analysis-00.toc
401 INFO: Target bytecode optimization level: 0
401 INFO: Initializing module dependency graph...
401 INFO: Initializing module graph hook caches...
413 INFO: Analyzing modules for base_library.zip ...
885 INFO: Processing standard module hook 'hook-heapq.py' from 'E:\\DEMO\\python-demo\\.venv\\lib\\site-packages\\PyInstaller\\hooks'
981 INFO: Processing standard module hook 'hook-encodings.py' from 'E:\\DEMO\\python-demo\\.venv\\lib\\site-packages\\PyInstaller\\hooks'
1572 INFO: Processing standard module hook 'hook-pickle.py' from 'E:\\DEMO\\python-demo\\.venv\\lib\\site-packages\\PyInstaller\\hooks'
2079 INFO: Caching module dependency graph...
2098 INFO: Looking for Python shared library...
2106 INFO: Using Python shared library: E:\Program Files\Python3.9\python39.dll
2106 INFO: Analyzing E:\PyCharmObject\emailSingUp\SignUp\AccountRegisterApp.py
2106 INFO: Processing pre-find-module-path hook 'hook-tkinter.py' from 'E:\\DEMO\\python-demo\\.venv\\lib\\site-packages\\PyInstaller\\hooks\\pre_find_module_path'
2106 INFO: TclTkInfo: initializing cached Tcl/Tk info...
2248 INFO: Processing standard module hook 'hook-_tkinter.py' from 'E:\\DEMO\\python-demo\\.venv\\lib\\site-packages\\PyInstaller\\hooks'
2280 INFO: Processing standard module hook 'hook-pandas.py' from 'E:\\DEMO\\python-demo\\.venv\\lib\\site-packages\\PyInstaller\\hooks'
3137 INFO: Processing standard module hook 'hook-_ctypes.py' from 'E:\\DEMO\\python-demo\\.venv\\lib\\site-packages\\PyInstaller\\hooks'
3147 INFO: Processing standard module hook 'hook-platform.py' from 'E:\\DEMO\\python-demo\\.venv\\lib\\site-packages\\PyInstaller\\hooks'
3162 INFO: Processing standard module hook 'hook-sysconfig.py' from 'E:\\DEMO\\python-demo\\.venv\\lib\\site-packages\\PyInstaller\\hooks'
3172 INFO: Processing standard module hook 'hook-numpy.py' from 'E:\\DEMO\\python-demo\\.venv\\lib\\site-packages\\PyInstaller\\hooks'
3984 INFO: Processing standard module hook 'hook-difflib.py' from 'E:\\DEMO\\python-demo\\.venv\\lib\\site-packages\\PyInstaller\\hooks'
4064 INFO: Processing standard module hook 'hook-multiprocessing.util.py' from 'E:\\DEMO\\python-demo\\.venv\\lib\\site-packages\\PyInstaller\\hooks'
4103 INFO: Processing standard module hook 'hook-xml.py' from 'E:\\DEMO\\python-demo\\.venv\\lib\\site-packages\\PyInstaller\\hooks'
4731 INFO: Processing standard module hook 'hook-charset_normalizer.py' from 'E:\\DEMO\\python-demo\\.venv\\lib\\site-packages\\_pyinstaller_hooks_contrib\\stdhooks'
4775 INFO: Processing pre-safe-import-module hook 'hook-typing_extensions.py' from 'E:\\DEMO\\python-demo\\.venv\\lib\\site-packages\\PyInstaller\\hooks\\pre_safe_import_module'
4775 INFO: SetuptoolsInfo: initializing cached setuptools info...
7047 INFO: Processing standard module hook 'hook-pytz.py' from 'E:\\DEMO\\python-demo\\.venv\\lib\\site-packages\\PyInstaller\\hooks'
8229 INFO: Processing standard module hook 'hook-pandas.io.formats.style.py' from 'E:\\DEMO\\python-demo\\.venv\\lib\\site-packages\\PyInstaller\\hooks'
9298 INFO: Processing standard module hook 'hook-pandas.plotting.py' from 'E:\\DEMO\\python-demo\\.venv\\lib\\site-packages\\PyInstaller\\hooks'
9580 INFO: Processing standard module hook 'hook-openpyxl.py' from 'E:\\DEMO\\python-demo\\.venv\\lib\\site-packages\\_pyinstaller_hooks_contrib\\stdhooks'
9713 INFO: Processing standard module hook 'hook-xml.etree.cElementTree.py' from 'E:\\DEMO\\python-demo\\.venv\\lib\\site-packages\\PyInstaller\\hooks'
9948 INFO: Processing standard module hook 'hook-PIL.py' from 'E:\\DEMO\\python-demo\\.venv\\lib\\site-packages\\PyInstaller\\hooks'
9998 INFO: Processing standard module hook 'hook-PIL.Image.py' from 'E:\\DEMO\\python-demo\\.venv\\lib\\site-packages\\PyInstaller\\hooks'
10309 INFO: Processing standard module hook 'hook-PIL.ImageFilter.py' from 'E:\\DEMO\\python-demo\\.venv\\lib\\site-packages\\PyInstaller\\hooks'
11031 INFO: Processing standard module hook 'hook-sqlite3.py' from 'E:\\DEMO\\python-demo\\.venv\\lib\\site-packages\\PyInstaller\\hooks'
11265 INFO: Processing standard module hook 'hook-pandas.io.clipboard.py' from 'E:\\DEMO\\python-demo\\.venv\\lib\\site-packages\\PyInstaller\\hooks'
11265 INFO: Processing standard module hook 'hook-qtpy.py' from 'E:\\DEMO\\python-demo\\.venv\\lib\\site-packages\\PyInstaller\\hooks'
11334 WARNING: QtLibraryInfo(PyQt5): failed to obtain Qt library info: Child process call to _read_qt_library_info() failed with:
File "E:\DEMO\python-demo\.venv\lib\site-packages\PyInstaller\isolated\_child.py", line 63, in run_next_command
output = function(*args, **kwargs)
File "E:\DEMO\python-demo\.venv\lib\site-packages\PyInstaller\utils\hooks\qt\__init__.py", line 198, in _read_qt_library_info
QtCore = importlib.import_module('.QtCore', package)
File "E:\Program Files\Python3.9\lib\importlib\__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 666, in _load_unlocked
File "<frozen importlib._bootstrap>", line 565, in module_from_spec
File "<frozen importlib._bootstrap_external>", line 1173, in create_module
File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
ImportError: DLL load failed while importing QtCore: 找不到指定的程序。
A module that was compiled using NumPy 1.x cannot be run in
NumPy 2.0.2 as it may crash. To support both 1.x and 2.x
versions of NumPy, modules must be compiled with NumPy 2.0.
Some module may need to rebuild instead e.g. with 'pybind11>=2.12'.
If you are a user of the module, the easiest solution will be to
downgrade to 'numpy<2' or try to upgrade the affected module.
We expect that some modules will need time to support NumPy 2.
Traceback (most recent call last): File "E:\DEMO\python-demo\.venv\lib\site-packages\PyInstaller\isolated\_child.py", line 100, in <module>
while run_next_command(read_fh, write_fh):
File "E:\DEMO\python-demo\.venv\lib\site-packages\PyInstaller\isolated\_child.py", line 63, in run_next_command
output = function(*args, **kwargs)
File "E:\DEMO\python-demo\.venv\lib\site-packages\PyInstaller\utils\hooks\qt\__init__.py", line 198, in _read_qt_library_info
QtCore = importlib.import_module('.QtCore', package)
File "E:\Program Files\Python3.9\lib\importlib\__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "E:\DEMO\python-demo\.venv\lib\site-packages\PySide2\__init__.py", line 107, in <module>
_setupQtDirectories()
File "E:\DEMO\python-demo\.venv\lib\site-packages\PySide2\__init__.py", line 58, in _setupQtDirectories
import shiboken2
File "E:\DEMO\python-demo\.venv\lib\site-packages\shiboken2\__init__.py", line 27, in <module>
from .shiboken2 import *
11562 INFO: hook-qtpy: selected 'PySide2' as the only available Qt bindings.
11563 INFO: Processing pre-safe-import-module hook 'hook-packaging.py' from 'E:\\DEMO\\python-demo\\.venv\\lib\\site-packages\\PyInstaller\\hooks\\pre_safe_import_module'
11571 INFO: Processing standard module hook 'hook-PySide2.py' from 'E:\\DEMO\\python-demo\\.venv\\lib\\site-packages\\PyInstaller\\hooks'
11614 INFO: Processing standard module hook 'hook-PySide2.QtNetwork.py' from 'E:\\DEMO\\python-demo\\.venv\\lib\\site-packages\\PyInstaller\\hooks'
A module that was compiled using NumPy 1.x cannot be run in
NumPy 2.0.2 as it may crash. To support both 1.x and 2.x
versions of NumPy, modules must be compiled with NumPy 2.0.
Some module may need to rebuild instead e.g. with 'pybind11>=2.12'.
If you are a user of the module, the easiest solution will be to
downgrade to 'numpy<2' or try to upgrade the affected module.
We expect that some modules will need time to support NumPy 2.
Traceback (most recent call last): File "E:\DEMO\python-demo\.venv\lib\site-packages\PyInstaller\isolated\_child.py", line 100, in <module>
while run_next_command(read_fh, write_fh):
File "E:\DEMO\python-demo\.venv\lib\site-packages\PyInstaller\isolated\_child.py", line 63, in run_next_command
output = function(*args, **kwargs)
File "E:\DEMO\python-demo\.venv\lib\site-packages\PyInstaller\utils\hooks\__init__.py", line 337, in _get_module_file_attribute
loader = importlib.util.find_spec(package).loader
File "E:\Program Files\Python3.9\lib\importlib\util.py", line 94, in find_spec
parent = __import__(parent_name, fromlist=['__path__'])
File "E:\DEMO\python-demo\.venv\lib\site-packages\PySide2\__init__.py", line 107, in <module>
_setupQtDirectories()
File "E:\DEMO\python-demo\.venv\lib\site-packages\PySide2\__init__.py", line 58, in _setupQtDirectories
import shiboken2
File "E:\DEMO\python-demo\.venv\lib\site-packages\shiboken2\__init__.py", line 27, in <module>
from .shiboken2 import *
A module that was compiled using NumPy 1.x cannot be run in
NumPy 2.0.2 as it may crash. To support both 1.x and 2.x
versions of NumPy, modules must be compiled with NumPy 2.0.
Some module may need to rebuild instead e.g. with 'pybind11>=2.12'.
If you are a user of the module, the easiest solution will be to
downgrade to 'numpy<2' or try to upgrade the affected module.
We expect that some modules will need time to support NumPy 2.
Traceback (most recent call last): File "E:\DEMO\python-demo\.venv\lib\site-packages\PyInstaller\isolated\_child.py", line 100, in <module>
while run_next_command(read_fh, write_fh):
File "E:\DEMO\python-demo\.venv\lib\site-packages\PyInstaller\isolated\_child.py", line 63, in run_next_command
output = function(*args, **kwargs)
File "E:\DEMO\python-demo\.venv\lib\site-packages\PyInstaller\utils\hooks\qt\__init__.py", line 670, in _check_if_openssl_enabled
QtCore = importlib.import_module('.QtCore', package)
File "E:\Program Files\Python3.9\lib\importlib\__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "E:\DEMO\python-demo\.venv\lib\site-packages\PySide2\__init__.py", line 107, in <module>
_setupQtDirectories()
File "E:\DEMO\python-demo\.venv\lib\site-packages\PySide2\__init__.py", line 58, in _setupQtDirectories
import shiboken2
File "E:\DEMO\python-demo\.venv\lib\site-packages\shiboken2\__init__.py", line 27, in <module>
from .shiboken2 import *
12364 INFO: Processing standard module hook 'hook-PySide2.QtCore.py' from 'E:\\DEMO\\python-demo\\.venv\\lib\\site-packages\\PyInstaller\\hooks'
A module that was compiled using NumPy 1.x cannot be run in
NumPy 2.0.2 as it may crash. To support both 1.x and 2.x
versions of NumPy, modules must be compiled with NumPy 2.0.
Some module may need to rebuild instead e.g. with 'pybind11>=2.12'.
If you are a user of the module, the easiest solution will be to
downgrade to 'numpy<2' or try to upgrade the affected module.
We expect that some modules will need time to support NumPy 2.
Traceback (most recent call last): File "E:\DEMO\python-demo\.venv\lib\site-packages\PyInstaller\isolated\_child.py", line 100, in <module>
while run_next_command(read_fh, write_fh):
File "E:\DEMO\python-demo\.venv\lib\site-packages\PyInstaller\isolated\_child.py", line 63, in run_next_command
output = function(*args, **kwargs)
File "E:\DEMO\python-demo\.venv\lib\site-packages\PyInstaller\utils\hooks\__init__.py", line 337, in _get_module_file_attribute
loader = importlib.util.find_spec(package).loader
File "E:\Program Files\Python3.9\lib\importlib\util.py", line 94, in find_spec
parent = __import__(parent_name, fromlist=['__path__'])
File "E:\DEMO\python-demo\.venv\lib\site-packages\PySide2\__init__.py", line 107, in <module>
_setupQtDirectories()
File "E:\DEMO\python-demo\.venv\lib\site-packages\PySide2\__init__.py", line 58, in _setupQtDirectories
import shiboken2
File "E:\DEMO\python-demo\.venv\lib\site-packages\shiboken2\__init__.py", line 27, in <module>
from .shiboken2 import *
12580 INFO: Processing standard module hook 'hook-PySide2.QtDataVisualization.py' from 'E:\\DEMO\\python-demo\\.venv\\lib\\site-packages\\PyInstaller\\hooks'
A module that was compiled using NumPy 1.x cannot be run in
NumPy 2.0.2 as it may crash. To support both 1.x and 2.x
versions of NumPy, modules must be compiled with NumPy 2.0.
Some module may need to rebuild instead e.g. with 'pybind11>=2.12'.
If you are a user of the module, the easiest solution will be to
downgrade to 'numpy<2' or try to upgrade the affected module.
We expect that some modules will need time to support NumPy 2.
Traceback (most recent call last): File "E:\DEMO\python-demo\.venv\lib\site-packages\PyInstaller\isolated\_child.py", line 100, in <module>
while run_next_command(read_fh, write_fh):
File "E:\DEMO\python-demo\.venv\lib\site-packages\PyInstaller\isolated\_child.py", line 63, in run_next_command
output = function(*args, **kwargs)
File "E:\DEMO\python-demo\.venv\lib\site-packages\PyInstaller\utils\hooks\__init__.py", line 337, in _get_module_file_attribute
loader = importlib.util.find_spec(package).loader
File "E:\Program Files\Python3.9\lib\importlib\util.py", line 94, in find_spec
parent = __import__(parent_name, fromlist=['__path__'])
File "E:\DEMO\python-demo\.venv\lib\site-packages\PySide2\__init__.py", line 107, in <module>
_setupQtDirectories()
File "E:\DEMO\python-demo\.venv\lib\site-packages\PySide2\__init__.py", line 58, in _setupQtDirectories
import shiboken2
File "E:\DEMO\python-demo\.venv\lib\site-packages\shiboken2\__init__.py", line 27, in <module>
from .shiboken2 import *
13096 INFO: Processing standard module hook 'hook-PySide2.QtGui.py' from 'E:\\DEMO\\python-demo\\.venv\\lib\\site-packages\\PyInstaller\\hooks'
A module that was compiled using NumPy 1.x cannot be run in
NumPy 2.0.2 as it may crash. To support both 1.x and 2.x
versions of NumPy, modules must be compiled with NumPy 2.0.
Some module may need to rebuild instead e.g. with 'pybind11>=2.12'.
If you are a user of the module, the easiest solution will be to
downgrade to 'numpy<2' or try to upgrade the affected module.
We expect that some modules will need time to support NumPy 2.
Traceback (most recent call last): File "E:\DEMO\python-demo\.venv\lib\site-packages\PyInstaller\isolated\_child.py", line 100, in <module>
while run_next_command(read_fh, write_fh):
File "E:\DEMO\python-demo\.venv\lib\site-packages\PyInstaller\isolated\_child.py", line 63, in run_next_command
output = function(*args, **kwargs)
File "E:\DEMO\python-demo\.venv\lib\site-packages\PyInstaller\utils\hooks\__init__.py", line 337, in _get_module_file_attribute
loader = importlib.util.find_spec(package).loader
File "E:\Program Files\Python3.9\lib\importlib\util.py", line 94, in find_spec
parent = __import__(parent_name, fromlist=['__path__'])
File "E:\DEMO\python-demo\.venv\lib\site-packages\PySide2\__init__.py", line 107, in <module>
_setupQtDirectories()
File "E:\DEMO\python-demo\.venv\lib\site-packages\PySide2\__init__.py", line 58, in _setupQtDirectories
import shiboken2
File "E:\DEMO\python-demo\.venv\lib\site-packages\shiboken2\__init__.py", line 27, in <module>
from .shiboken2 import *
13798 INFO: Processing standard module hook 'hook-PySide2.QtWidgets.py' from 'E:\\DEMO\\python-demo\\.venv\\lib\\site-packages\\PyInstaller\\hooks'
A module that was compiled using NumPy 1.x cannot be run in
NumPy 2.0.2 as it may crash. To support both 1.x and 2.x
versions of NumPy, modules must be compiled with NumPy 2.0.
Some module may need to rebuild instead e.g. with 'pybind11>=2.12'.
If you are a user of the module, the easiest solution will be to
downgrade to 'numpy<2' or try to upgrade the affected module.
We expect that some modules will need time to support NumPy 2.
Traceback (most recent call last): File "E:\DEMO\python-demo\.venv\lib\site-packages\PyInstaller\isolated\_child.py", line 100, in <module>
while run_next_command(read_fh, write_fh):
File "E:\DEMO\python-demo\.venv\lib\site-packages\PyInstaller\isolated\_child.py", line 63, in run_next_command
output = function(*args, **kwargs)
File "E:\DEMO\python-demo\.venv\lib\site-packages\PyInstaller\utils\hooks\__init__.py", line 337, in _get_module_file_attribute
loader = importlib.util.find_spec(package).loader
File "E:\Program Files\Python3.9\lib\importlib\util.py", line 94, in find_spec
parent = __import__(parent_name, fromlist=['__path__'])
File "E:\DEMO\python-demo\.venv\lib\site-packages\PySide2\__init__.py", line 107, in <module>
_setupQtDirectories()
File "E:\DEMO\python-demo\.venv\lib\site-packages\PySide2\__init__.py", line 58, in _setupQtDirectories
import shiboken2
File "E:\DEMO\python-demo\.venv\lib\site-packages\shiboken2\__init__.py", line 27, in <module>
from .shiboken2 import *
14131 INFO: Processing standard module hook 'hook-dateutil.py' from 'E:\\DEMO\\python-demo\\.venv\\lib\\site-packages\\_pyinstaller_hooks_contrib\\stdhooks'
14198 INFO: Processing pre-safe-import-module hook 'hook-six.moves.py' from 'E:\\DEMO\\python-demo\\.venv\\lib\\site-packages\\PyInstaller\\hooks\\pre_safe_import_module'
14331 INFO: Processing standard module hook 'hook-xml.dom.domreg.py' from 'E:\\DEMO\\python-demo\\.venv\\lib\\site-packages\\PyInstaller\\hooks'
14713 INFO: Processing standard module hook 'hook-PyQt5.py' from 'E:\\DEMO\\python-demo\\.venv\\lib\\site-packages\\PyInstaller\\hooks'
ERROR: Aborting build process due to attempt to collect multiple Qt bindings packages: attempting to run hook for 'PyQt5', while hook for 'PySide2' has already been run! PyInstaller does not support multiple Qt bindings packages in a frozen application - either ensure that the build environment has only one Qt bindings package installed, or exclude the extraneous bindings packages via the module exclusion mechanism (--exclude command-line option, or excludes list in the spec file).
(packaging_env) PS E:\PyCharmObject\emailSingUp\SignUp>
打包后没有生成exe程序