miniconda安装及使用
- 2020 年 11 月 28 日
- 筆記
- Python
conda环境配置
安装conda
[清华源下载地址](//mirrors.tuna.tsinghua.edu.cn/anaconda/miniconda/)
官网或百度云网盘下载对应版本进行安装
配置源
conda config --add channels //mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
conda config --add channels //mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge
conda config --add channels //mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/msys2/
conda config --set show_channel_urls yes
创建环境
conda create -n test python=3.7
切换环境
source activate test
退出环境
conda deactivate test
安装包
conda install xlrd
删除环境
conda remove -n test --all
查看环境
conda env list
备注
切换到其他环境必须是在base环境下