lidashuaiqi (@thmu)请教,pyinstaller打包单exe文件后允许提示 no module named "azure" 中发帖

如题,不打包,直接执行python文件,项目是可以直接运行的。pyinstaller打包后就会提示下图的错误 
[image]

python伪代码(upload2AzureBlob.py)
我尝试过的方案如下均无效

使用 pyinstaller --onefile --hidden-import=azure --hidden-import=azure.storage --hidden-import=azure.storage.blob --hidden-import=azure.identity --hidden-import=azure.core sync2cloud.py 还是会提示同样的错误
.spec文件中添加hiddenimports=['azure', 'azure.storage', 'azure.storage.blob', 'azure.identity', '...