Conda常用命令
- 下载地址
 
- 获取版本号
 
conda -v
- 创建虚拟环境
 
conda create --name your_env_name python=2.7
- 创建时附加包
 
conda create --name your_env_name python=3.5 numpy sklearn pandas
- 进入环境
 
activate your_env_name
- 退出环境
 
deactivate
- 删除环境
 
conda remove --name your_env_name --all
- 分享环境
 
activate target_env
conda env export > environment.yml
- 生成环境
 
conda env create -f environment.yml
- 更换源
 
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
conda config --set show_channel_urls yes
- 导出依赖
 
pip freeze > requirements.txt
- 安装依赖
 
pip install -r requiements.txt
- pip换源
 
pip install -i https://pypi.douban.com/simple package