Win 10+Anaconda 环境下 tensorflow+keras 安装指南

1 安装环境 Win 十、Anaconda 3.6python

2 安装步骤:windows

(1)在 anaconda 终端 Anaconda Prompt 中输入:conda create -n tensorflow python=3.5app

【设置清华镜像】在终端中输入:conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/测试

conda config --set show_channel_urls yesurl

(2)安装完成后,输入:activate tensorflow 激活环境spa

(3)安装 CPU 版本的 tensorflow 输入:pip install tensorflowregexp

【使用 pip 清华镜像方式安装 python 包】安装:pip install -i https://pypi.tuna.tsinghua.edu.cn/simple  requestsip

升级:pip install -i https://pypi.tuna.tsinghua.edu.cn/simple --upgrade  requestsget

安装 tensorflow:pip install -i https://pypi.tuna.tsinghua.edu.cn/simple/ https://mirrors.tuna.tsinghua.edu.cn/tensorflow/windows/cpu/tensorflow-1.1.0-cp35-cp35m-win_amd64.whlrequests

清华 tensorflow 镜像网连接:https://mirrors.tuna.tsinghua.edu.cn/tensorflow/ 

(4)在终端中测试:进入 python3.5,输入:import tensorflow as tf 无报错,即成功

在终端中exit()退出python,输入 deactivate tensorflow 能够退回到 python3.6 版本

(5)在 spyder 中使用 tensorflow:进入 anaconda navigator,点击左侧的 home,选择 application on tensorflow,而后安装界面中的 spyder

相关文章
相关标签/搜索