从零开始Win10搭建TensorFlow开发环境

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/kwame211/article/details/87971978

1.下载并安装Anaconda
到官网下载Anaconda最新版本:https://www.anaconda.com/distribution/ ,选择对应版本进行下载。

然后进行安装。注意安装anaconda时一定要把环境变量加入windows环境中。

2.设置Anaconda源
在Shall下运行默认环境,执行以下代码,设置清华镜像源:

conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/
conda config --set show_channel_urls yes
或打开Channs面板,直接添加两个镜像地址:

https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/

https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/

然后点击Update channels。

 3.创建Python3.6环境
打开Environments选项卡,点击Create,输入名称,Python版本选择3.6,点击Create。

4.安装TensorFlow
    

搜索tensorflow,选择第一个,之后点击Apply。

再次点击Apply,Anaconda会自动进行安装。

5.安装jupyter notebook
点击Home选项卡,安装jupyter notebook。

使用jupyter notebook环境运行。

现在可以调用TensorFlow进行深度学习了!

猜你喜欢

转载自blog.csdn.net/kwame211/article/details/87971978