一、获取Win的Miniconda3安装包
1.官网
https://conda.io/miniconda.html
2.开源镜像
https://mirrors.tuna.tsinghua.edu.cn/anaconda/miniconda/
二、安装过程
1.运行安装包,点击Next;
2.点击 I Agree
3.点击Next;
4.选择安装路径,点击Next;
5.选择添加环境变量,点击Install;
6.点击Next;
7.安装完成。
三、Conda管理包
# 安装命令 conda install package_name # 安装numpy,输入 conda install numpy # 安装 matplotlib conda install matplotlib # 查看已安装的包 conda list # 搜索安装包 conda search search_term # 同时安装多个包 conda install numpy scipy pandas # 安装指定版本的包 conda install numpy=1.11 # 卸载包 conda remove package_name # 更新包 conda update package_name # 更新环境中的所有包 conda update --all四
四、Conda创建环境
# 基于 python3.6 创建一个名为test_py3 的环境 conda create --name test_py3 python=3.6 # 基于 python2.7 创建一个名为test_py2 的环境 conda create --name test_py2 python=2.7 # 激活 test 环境 activate test_py2 # windows source activate test_py2 # linux/mac # 切换到python3 activate test_py3