记录 Anaconda3 的使用方法
Install
Use
# set no auto activate
conda config --set auto_activate_base false
# create a new env
conda create -n <env_name>
# check all envs
conda info --envs
# activate the env
conda activate <env_name>
# deactivate env
conda deactivate <env_name>
# install package
conda install <package_name>
# list packages
conda list
# remove env
conda remove -n <env_name> --all
# set one env's python version
conda install python==3.8 -n "<env_name>"
# if pip failed
# Linux
sudo mkdir ~/.pip
sudo touch ~/.pip/pip.conf
sudo vim ~/.pip/pip.conf
# in pip.conf
[global]
index-url = https://pypi.tuna.tsinghua.edu.cn/simple
[install]
trusted-host=mirrors.aliyun.com