1.基于anaconda安装tensorflow
步骤:1)cmd下键入pip install tensorflow
2) anaconda-prompt下键入import tensorflow as tf 查看tensorflow是否安装成功
3)anaconda-navigator下安装spyder并在spyder下敲代码验证即可
参考博客:TensorFlow在windows上安装与简单示例https://blog.youkuaiyun.com/darlingwood2013/article/details/60322258
2.参照1.安装完之后提示错误
C:\Users\user\Anaconda3\lib\site-packages\h5py__init__.py:34: FutureWarning: Conversion of the second argument of issubdtype from float
to np.floating
is deprecated. In future, it will be treated as np.float64 == np.dtype(float).type
.
from ._conv import register_converters as _register_converters
搜索问题原因,有博客指出是因为anaconda安装的是numpy1.14.3版本,版本不兼容,要改成1.13.0版本。
参考博客:在anaconda环境下,安装tensorflowhttps://blog.youkuaiyun.com/learn_tech/article/details/79861683