【发布时间】:2020-01-12 08:33:45
【问题描述】:
尝试运行 pyinstaller 在 windows 上编译 tensorflow 应用程序。该文件已完美打包,但在运行生成的 exe 时最终遇到此错误。
File "site-packages\astor\__init__.py", line 24, in <module>
FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Users\\me\\AppData\\Local\\Temp\\_MEI138162\\astor\\VERSION'
我确保包含astor 包,甚至尝试使用--hiden imports 标志,但无济于事。
如何在 pyinstaller 中正确包含 astor 包?
【问题讨论】:
标签: python tensorflow pyinstaller