【软件安装】Windows下Anaconda安装+tensorflow安装

来源:互联网 发布:手机屏幕动物软件 编辑:程序博客网 时间:2024/05/01 13:22

一.Windows下Anaconda的安装

Anaconda下载官网地址:https://www.anaconda.com/download/#windows

下载对应系统的版本,我将下载Windows系统,64位,当前最新的Anaconda版本是5.0.0版本(2017.9.26),若想安装Windows下tensorflow,需安装Python3.5版本;

官网给的是Python 3.6 version,若想安装Python 3.5,有如下几招;


How do I get Anaconda with Python 3.5?

There are three ways to get Anaconda with Python 3.5:

  • We recommend that you download the latest version of Anaconda and then make a Python 3.5 environment.
  • Or download the latest version of Anaconda and run this command to install Python 3.5 in the root environment: conda install python=3.5
  • Or download the most recent Anaconda that included Python 3.5 by default, Anaconda 4.2.0. You can download it from our archive. Scroll down the page until you find version 4.2.0 for your platform.

我选择的方案是安装Anaconda 4.4.0版本(Anaconda3-4.4.0-Windows-x86_64.exe);连接:https://repo.continuum.io/archive/

嫌弃下载慢的话,可打开连接:https://mirrors.tuna.tsinghua.edu.cn/help/anaconda/

一路傻瓜式安装,选择安装目录,可参考:https://docs.anaconda.com/anaconda/install/windows.html

按照官网建议,不add anaconda to Path;


最后点击finish即可完成;


二.用Anaconda安装Tensorflow

打开开始中的Anaconda Prompt搜索支持的tensorflow,输入以下内容按回车查找;


选取合适自己电脑的Version与platform,我选择的是以下(1.2.0版本的tensorflow)——

 dhirschfeld/tensorflow    |    1.2.0 | conda           | win-64

在Prompt中输入:anaconda show dhirschfeld/tensorflow并按回车


会反馈一条安装命令,你再次输入该安装命令即可安装tensorflow了;


Proceed ([y]/n)?选择y

此后是下载和安装过程


以上即完成了tensorflow的安装;接下来验证下是否安装成功;


点击开始->Anaconda3(64bit)->Jupyter Notebook,如下,点击New,选择新建Python3(支持tensorflow)文件;


输入:import tensorflow 并按住shift+enter 换行,如没报错,证明安装完成,如下图所示,到此,支持Windows 64位下的tensorflow安装完成;




另外, 

Windows环境下,Anaconda 安装多版本python,以及TensorFlow安装可参考如下文章:

http://blog.csdn.net/u012560212/article/details/57409311



原创粉丝点击