导入 tensorflow 时出错(刚刚安装)python 3.7
Error importing tensorflow (just installed) python 3.7
我在 Windows 10 台机器上安装了 python 3.7,完全没有自定义的东西,我使用的是安装 tensorflow:
pip3 install --user --upgrade tensorflow
但是当我尝试使用以下方法导入它时:
import tensorflow
在 python 脚本或 shell 中,它给了我以下错误:
ImportError: DLL load failed: The specified module could not be found.
我是不是做错了什么?
编辑:顺便说一句,pip 版本是 20.0.2,我之前尝试过 pip 10.x 并得到了相同的结果。
关于 https://github.com/tensorflow/tensorflow/issues/35749 or https://github.com/tensorflow/tensorflow/issues/36859(以及相同的重复问题的数量),一些 windows 计算机的 tensorflow 2.1 最近出现了一些问题。
到目前为止的解决方法是在 windows 上使用 tensorflow 2.0:
pip install tensorflow==2.0
更多的细节,这个已经很详细了:https://github.com/tensorflow/tensorflow/issues/36167#issuecomment-577886156
我在 Windows 10 台机器上安装了 python 3.7,完全没有自定义的东西,我使用的是安装 tensorflow:
pip3 install --user --upgrade tensorflow
但是当我尝试使用以下方法导入它时:
import tensorflow
在 python 脚本或 shell 中,它给了我以下错误:
ImportError: DLL load failed: The specified module could not be found.
我是不是做错了什么?
编辑:顺便说一句,pip 版本是 20.0.2,我之前尝试过 pip 10.x 并得到了相同的结果。
关于 https://github.com/tensorflow/tensorflow/issues/35749 or https://github.com/tensorflow/tensorflow/issues/36859(以及相同的重复问题的数量),一些 windows 计算机的 tensorflow 2.1 最近出现了一些问题。 到目前为止的解决方法是在 windows 上使用 tensorflow 2.0:
pip install tensorflow==2.0
更多的细节,这个已经很详细了:https://github.com/tensorflow/tensorflow/issues/36167#issuecomment-577886156