tensorflow 安装

我的python是3.6版本,安装tensorflow的python3.6版本竟然报错,如图:

试过很多办法后,以下操作成功:

1:创建环境:

conda create -n tensorflow python=3.5

2:激活环境:

conda activate tensorflow(退出环境:conda deactivate)

3:从清华大学镜像源安装tensorflow   tensorflow清华镜像

pip install
> -i https://pypi.tuna.tsinghua.edu.cn/simple/
> https://mirrors.tuna.tsinghua.edu.cn/tensorflow/linux/cpu/tensorflow-1.10.0-cp35-cp35m-linux_x86_64.whl

 安装成功~

原文地址:https://www.cnblogs.com/sunhuahuaa/p/9799560.html