Pyinstaller packaged .py file problem

wrote a tool with an interface in PyQt5+Python3.6 and wanted to package it into a .exe file so that it could run on a machine without a python environment. Use pyinstaller to package as said on the Internet. After packing, an error is reported after opening the exe file in the dist folder:
ModuleNotFoundError: No module named "scipy._lib.messagestream"
this problem is solved by modifying the hiddenimports of the .spec file to: hiddenimports= [" scipy._lib.messagestream"], and then using the command pyinstaller x.spec to generate a new .exe file that still reports an error
ModuleNotFoundError: No module named "typedefs"
and then continues to add. Continue to report errors, it"s all this mistake.
I would like to ask you, how to solve this problem?

Feb.27,2021

try packing in the python3.5.3 environment

Menu