Anaconda notes
- conda function
- Version management switch
- Install additional packages
conda create python27 environment
conda create --name python27 python=2.7
conda switch python version
conda activate python27 # 切换为环境名称为 python27 的Python环境
View conda information (version information, download the source information)
conda info
View conda installation environment
conda info -e
Delete conda installation environment
# 删除环境名为 python27 的环境
conda remove -n python27 --all
Modify conda download source
# 添加清华源
conda config --add channels "https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/"
# 修改下载时显示下载源
conda config --set show_channel_urls yes
Activation environment
# 激活环境名为 python27 的环境
activate python27
Removal of the package
# 删除 python27 环境中的 numpy 包
conda remove -n python27 numpy
Update package
# 更新 python27 环境中的 numpy 包
conda update -n python27 numpy
The installation package
# 安装 python27 环境中的 numpy 包
conda install -n python27 numpy
View the list of installed packages
conda list