本文将介绍如何在win10的环境下安装anaconda,并经过anaconda搭建tensorflow框架。文章分为三个步骤:python
这里在清华大学开源软件镜像站下载anaconda,经过镜像站能够快速下载软件。框架
网址:https://mirrors.tuna.tsinghua.edu.cn/anaconda/archive/测试
本文下载的为:Anaconda3-4.2.0-Windows-x86_64.exeurl
2. Anaconda安装blog
Install for: Just me仍是All Users,假如你的电脑有好几个 Users ,才须要考虑的问题,这里选择just me便可。ip
此时anaconda安装完毕。get
修改管理镜像为国内镜像:pycharm
最后执行命令conda update pip,由于咱们须要最新的pip来安装tensorflow编译器
Anaconda中安装tensorflow,能够直接安装也能够在Anaconda虚拟环境中安装tensorflow :开源软件
这里使用在Anaconda虚拟环境中安装tensorflow,共分为两个步骤:
conda create -n tensorflow(虚拟环境名称) python=3.6(python版本)
使用命令‘activate tensorflow’进入虚拟环境。
使用清华的源安装tensorflow:
pip install tensorflow==1.4.0 -i https://pypi.tuna.tsinghua.edu.cn/simple/
测试:import tensorflow as tf
将虚拟环境中的tensorflow的python编译器配置进pycharm中。