Win10使用Anaconda管理Python3与Python2(兼容Atom)
前言
日常编程使用Python3,但是某些脚本需要Python2环境。
使用其它的包管理工具都感觉对Win10的友好性不佳。
Anaconda的安装与使用
1.下载
从https://mirrors.tuna.tsinghua.edu.cn/anaconda/archive/下载所需要的包
本处示例中使用Anaconda3-5.1.0-Windows-x86_64.exe
安装过程中这里两处都打勾,其它根据需要即可。

2.修改为国内源
参照https://mirrors.tuna.tsinghutian'jiaa.edu.cn/help/anaconda/在cmd中执行以下内容
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
3.添加Python2.7环境
打开Anaconda Navigator新建Python2.7的环境

4.使用Python2.7环境
打开cmd运行 activate Python27,查看Python版本

使Atom使用Anaconda环境变量
1.Atom使用Python3.6
使用命令行执行atom打开,查看版本号

执行 activate Python27再执行atom更换环境

参考来源:http://python.jobbole.com/86236/
https://mirrors.tuna.tsinghua.edu.cn/help/anaconda/
浙公网安备 33010602011771号