lawrence1357 发表于 2021-2-6 12:08:30

pyinstaller打包后的.exe文件其他电脑不能运行

Traceback (most recent call last):
File "Main.py", line 35, in <module>
File "Main.py", line 17, in __init__
File "ctypes\__init__.py", line 434, in __getattr__
    dll = self._dlltype(name)
File "PyInstaller\loader\pyiboot01_bootstrap.py", line 169, in __init__
    raise PyInstallerImportError(name) from base_error
__main__.PyInstallerImportError: Failed to load dynlib/dll 'shcore'. Most probab
ly this dynlib/dll was not found when the application was frozen.
Failed to execute script Main


但是我找不到这个shcore文件在哪,在我自己电脑可以运行

1406598279 发表于 2021-2-6 15:26:05

你只要dist文件夹里的exe就行了

wuqramy 发表于 2021-2-7 22:55:22

问问度娘:
康康有没有需要的
页: [1]
查看完整版本: pyinstaller打包后的.exe文件其他电脑不能运行