首先打开cmd命令行窗口,输入pip install tensorflow==1.7.0,耐心等待大约一个多小时,安装成功啦!这个时候import tensorflow as tf,会出现错误: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`.
错误定位到anaconda下的h5py包,解决办法是对h5py包进行升级,pip install h5py==2.8.0rc1
import tensorflow as tf后,输入tf.__version__即可查看版本。
注:这里没有对tensorflow安装进行详述,大概步骤是:安装anaconda3、下载与python3.6对应的.whl文件,安装cuda8.0,加入cudnn库文件。
本文介绍了如何通过命令行安装TensorFlow 1.7.0版本,并解决了安装过程中可能出现的FutureWarning警告问题。此外,还提供了安装所需环境的具体步骤。
1万+

被折叠的 条评论
为什么被折叠?



