#pyinstaller打包使用了tensorflow的python程序
打包完毕后,运行时如果提示
no module named ‘tensorflow’
可以尝试打包时添加以下参数–hidden-import tensorflow
pyinstaller -F .\PythonDemo.py --hidden-import tensorflow
#pyinstaller打包使用了tensorflow的python程序
打包完毕后,运行时如果提示
no module named ‘tensorflow’
可以尝试打包时添加以下参数–hidden-import tensorflow
pyinstaller -F .\PythonDemo.py --hidden-import tensorflow