小编Ale*_*k89的帖子

Tensorflow-gpu与pyinstaller

试图分发一个依赖张量流的程序......

使用tensorflow,它可以很好地用作脚本和pyinstaller.使用tensorflow-gpu它可以作为脚本使用,但不能使用pyinstaller.cuda和cudnn dll已被pyinstaller复制到bundle文件夹中.

我使用python 3.6.5和tensorflow 1.7.0.(如果有帮助,可以更改版本......)

错误信息:

回溯(最近通话最后一个):文件"站点包\ tensorflow \蟒蛇\ pywrap_tensorflow.py" 58行,在文件"C:\用户\ ALEKS \应用程序数据\本地\程序\ python的\ python36\LIB \定点包\ PyInstaller \装载机\ pyimod03_importers.py "线路631,在exec_module EXEC(字节码,模块字典)文件"站点包\ tensorflow \蟒蛇\ pywrap_tensorflow_internal.py" 18行,在文件"站点包\ tensorflow\python\pywrap_tensorflow_internal.py",第17行,在swig_import_helper文件"importlib__init__.py",第126行,在import_module中ModuleNotFoundError:没有名为'tensorflow.python._pywrap_tensorflow_internal'的模块

在处理上述异常期间,发生了另一个异常:

回溯(最近通话最后一个):文件"interface.py",第14行,在文件"C:\用户\ ALEKS \应用程序数据\本地\程序\ python的\ python36\LIB \站点包\ PyInstaller \装载机\ pyimod03_importers. PY "线路631,在exec_module EXEC(字节码,模块字典)文件"站点包\ tensorflow__init __ PY"的第24行中的文件" C:\用户\ ALEKS \应用程序数据\本地\程序\ python的\ python36\LIB \站点包\ PyInstaller \装载机\ pyimod03_importers.py "线路631,在exec_module EXEC(字节码,模块.字典)文件"站点包\ tensorflow\python__init __ PY",线路49,在文件" C:\用户\ ALEKS \应用程序数据\本地\程序\ python的\ python36\LIB \站点包\ PyInstaller \装载机\ pyimod03_importers.py "线路631,在exec_module EXEC(字节码,模块字典)文件"站点包\ tensorflow \蟒蛇\ pywrap_tensorflow.py "74行,在导入错误:回溯(最近通话最后一个):文件"站点包\ …

python pyinstaller python-3.x tensorflow

6
推荐指数
1
解决办法
3198
查看次数

标签 统计

pyinstaller ×1

python ×1

python-3.x ×1

tensorflow ×1