赞
踩
在pycharm中可以正常运行,但是打包完成后再次运行时提示丢包。
Microsoft Windows [版本 10.0.19044.2251] (c) Microsoft Corporation。保留所有权利。 C:\Users\yb.chen>C:\Users\yb.chen\PycharmProjects\pythonProject\dist\MainWindow.exe Traceback (most recent call last): File "MainWindow.py", line 4, in <module> File "PyInstaller\loader\pyimod03_importers.py", line 495, in exec_module File "disposed_main.py", line 2, in <module> File "PyInstaller\loader\pyimod03_importers.py", line 495, in exec_module File "pydicom\__init__.py", line 32, in <module> File "PyInstaller\loader\pyimod03_importers.py", line 495, in exec_module File "pydicom\dataelem.py", line 18, in <module> File "PyInstaller\loader\pyimod03_importers.py", line 495, in exec_module File "pydicom\config.py", line 365, in <module> File "PyInstaller\loader\pyimod03_importers.py", line 495, in exec_module File "pydicom\pixel_data_handlers\rle_handler.py", line 51, in <module> File "PyInstaller\loader\pyimod03_importers.py", line 495, in exec_module File "pydicom\encoders\__init__.py", line 1, in <module> File "PyInstaller\loader\pyimod03_importers.py", line 495, in exec_module File "pydicom\encoders\base.py", line 864, in <module> File "pydicom\encoders\base.py", line 84, in add_plugin File "importlib\__init__.py", line 126, in import_module ModuleNotFoundError: No module named 'pydicom.encoders.pylibjpeg' [53576] Failed to execute script 'MainWindow' due to unhandled exception!
重新以下面的方式进行打包
pyinstaller -F --collect-submodules=pydicom MainWindow.py
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。