错误1.
Traceback (most recent call last):
File "<string>", line 2, in <module>
ModuleNotFoundError: No module named 'Crypto.Math'
解决方案:
pip install pycryptodome
错误2.
FileNotFoundError:[Errno2]No such file or directory: 'C:\\Users\\24110\\AppData\\Local\\Temp\\_MEI15602\\dask\\dask.yaml'
[21464] Failed to execute script xxx
解决方案:
在自己安装的pyinstaller库的hooks文件夹下新建一个hook-dask.py文件,在py中写入:
from PyInstaller.utils.hooks import collect_data_files
datas = collect_data_files('dask')
保存即可
重新打包spec。 pyinstaller -F -w xxx.spec
3.出现warning,不用调试
参考:
https://stackoverflow.com/questions/57713994/modulenotfounderror-no-module-named-crypto-math
https://blog.csdn.net/weixin_44287209/article/details/100551399