#Python相关
##更换Anaconda镜像源 打开Anaconda Prompt,输入清华的仓库镜像,更新包更快:
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
conda config --set show_channel_urls yes
推荐第一行命令输入两次,以便把这个镜像地址放在首位。
##Windows安装了Anaconda3后,安装Python2.7的方法 打开cmd,输入:
conda create -n py2 python=2.7
激活此环境,输入:
activate py2
反之,输入:
deactivate py2
##利用Anaconda安装TensorFlow TensorFlow官网教程 打开Anaconda Prompt,输入:
conda create -n tensorflow python=3.5
安装完以后,输入:
activate tensorflow
Issue the appropriate command to install TensorFlow inside your conda environment. To install the CPU-only version of TensorFlow, enter the following command:
(tensorflow)C:> pip install --ignore-installed --upgrade tensorflow
To install the GPU version of TensorFlow, enter the following command (on a single line):
(tensorflow)C:> pip install --ignore-installed --upgrade tensorflow-gpu