[anaconda] anaconda learning summary

1 Introduction to anaconda

Anaconda refers to an open source Python distribution that includes more than 180 scientific packages such as conda and Python and their dependencies. Due to the large number of scientific packages included, Anaconda's download file is relatively large. Downloads are also slower.

2 anaconda download

# 官方
https://www.anaconda.com/products/individual#Downloads
# 清华镜像
https://mirrors.tuna.tsinghua.edu.cn/anaconda/archive/

3 simple configuration

3.1 Add environment variables

Add to PATH:

D:\Program Files\anaconda3
D:\Program Files\anaconda3\Scripts

3.2 Configure pycharm

insert image description here
or
insert image description here

3.3 Source change

# 查看当前下载源
conda config --show-sources
# 添加下载源
# 清华镜像源
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 --add channels https://mirrors.ustc.edu.cn/anaconda/pkgs/main/
conda config --add channels https://mirrors.ustc.edu.cn/anaconda/pkgs/free/
conda config --add channels https://mirrors.ustc.edu.cn/anaconda/cloud/conda-forge/
conda config --add channels https://mirrors.ustc.edu.cn/anaconda/cloud/msys2/
conda config --add channels https://mirrors.ustc.edu.cn/anaconda/cloud/bioconda/
conda config --add channels https://mirrors.ustc.edu.cn/anaconda/cloud/menpo/
# 添加下载源后,设置搜索时显示通道地址
conda config --set show_channel_urls yes
# 删除下载源
conda config --remove channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/

4 Related commands

conda --version 检查版本
conda list 查询
conda install * 安装
conda update * 升级
conda remove * 卸载

5 use

  • View virtual environment
conda info --env

insert image description here

  • Enter the virtual environment
cd "d:\Program Files\anaconda3"
activate base

insert image description here
ready to use
insert image description here

Guess you like

Origin blog.csdn.net/qq_45859826/article/details/130558408