Tensorflow(CPUonly)在Windows Server 2016(VM)中不工作?

2024-06-24 13:34:35 发布

您现在位置:Python中文网/ 问答频道 /正文

我在WindowsServer2016(VM)中安装了Python3.6.5(64位)和tensorflow(仅CPU)。安装看起来不错,但在尝试运行tensorflow python shell时,出现了以下错误(删除了堆栈详细信息):

ImportError: DLL load failed: A dynamic link library (DLL) initialization routine failed.
ImportError: No module named '_pywrap_tensorflow_internal'

我做了搜索,找到了一些关于丢失dll,nvidia libs的答案,但没有一个对我有用。以下是回顾:

  1. 我只使用tensorflow CPU,所以nvidia libs不需要。在
  2. MSVCP140.DLL已安装并在^{中设置

我在两个不同的vm中执行了此操作,但都不起作用。不过,我在WindowsServer2012(VM)中也做了同样的步骤,在我安装了c++Redistributable 2015之后,它就起作用了!所以我想知道Windows Server 2016(和/或虚拟机)是否存在兼容性问题?在

谢谢!在


Tags: 堆栈tensorflow错误loadvm详细信息dynamiccpu