导入张量流时的ImportError

时间:2019-08-02 13:15:41

标签: python tensorflow

我最近使用pip install --upgrade tensorflow安装了TensorFlow,然后在导入它时出现以下错误:

ImportError: DLL load failed: A dynamic link library (DLL) initialization routine failed.

Failed to load the native TensorFlow runtime.

1 个答案:

答案 0 :(得分:0)

尝试一下:

pip install setuptools

如果不会更改任何内容,请卸载tensorflow并尝试(如果您有conda env):

conda install tensorflow