一、conda
查看虚拟环境:conda info -e
创建虚拟环境:conda create -n [环境名] python==[版本号]
激活虚拟环境:conda activate [环境名]
退出虚拟环境:conda deactivate
删除虚拟环境:conda remove -n [环境名] --all
查看数据源:conda config --show channels
添加数据源:conda config --add channels [网址]
删除数据源:conda config --remove channels [网址]
更新conda:conda update conda
更新anaconda:conda update anaconda
更新anaconda-navigator:conda update anaconda-navigator
二、pip
安装第三方库:pip install xxx
安装到指定路径:--target=[指定路径](常用于不同版本python或虚拟环境之间)
安装指定版本库:xxx==[版本号]
通过指定下载源:-i [网址]