The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "AlexNet_MicroProgram.py", line 6, in <module>
File "<frozen importlib._bootstrap>", line 971, in _find_and_load
File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 665, in _load_unlocked
File "/Users/yunhuinie/opt/anaconda3/envs/tensorflow/lib/python3.6/site-packages/PyInstaller/loader/pyimod03_importers.py", line 493, in exec_module
exec(bytecode, module.__dict__)
File "torch/__init__.py", line 196, in <module>
File "torch/__init__.py", line 149, in _load_global_deps
File "PyInstaller/loader/pyiboot01_bootstrap.py", line 146, in __init__
__main__.PyInstallerImportError: Failed to load dynlib/dll '/var/folders/gl/jwh_cmvn6qn6dfb89dsz6c040000gn/T/_MEIQx9N2S/torch/lib/libtorch_global_deps.dylib'. Most probably this dynlib/dll was not found when the application was frozen.
[27587] Failed to execute script AlexNet_MicroProgram
python版本为3.6,pyinstaller版本为4.0,按照一些贴中的方式修改过没有成