Windows 10 pyinstaller tensorflow 缺少模块 [英] Windows 10 pyinstaller tensorflow missing modules

查看:46
本文介绍了Windows 10 pyinstaller tensorflow 缺少模块的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试使用 pyinstaller 部署模型,当我运行它时出现以下错误.

I try to deploy a model with pyinstaller and when i run it i get the following error.

ModuleNotFoundError: 没有命名的模块'tensorflow.python._pywrap_tensorflow_internal'

ModuleNotFoundError: No module named 'tensorflow.python._pywrap_tensorflow_internal'

张量流 1.7.0

cudnn64_7

CUDA 9.0

Python 3.6

推荐答案

您只需将 dist 文件夹中包含的文件 _pywrap_tensorflow_internal.pyd 重命名为 tensorflow.python 即可解决此问题._pywrap_tensorflow_internal.pyd.我仍然需要弄清楚如何告诉 pyinstaller 正确"的模块名称.

You can resolve this issue by simply renaming the file _pywrap_tensorflow_internal.pyd contained in the dist folder to tensorflow.python._pywrap_tensorflow_internal.pyd. I still have to figure out how to tell pyinstaller the "correct" module name.

这篇关于Windows 10 pyinstaller tensorflow 缺少模块的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆