The following operations are performed in Anaconda Prompt:
Anaconda view environment:
conda info --env
或者
conda env list
Anaconda creates the environment:
conda create -n name(环境名称) python=x.x(python版本号)
Anaconda creates the environment under the specified path:
conda create --prefix=/[绝对路径]/[环境名称] python=[python版本号]
Anaconda deletes the environment:
conda remove -n name(环境名称) --all
Anaconda activates the environment:
conda activate name(环境名称)
Anaconda exits the environment:
conda deactivate
View the packages installed in the environment:
pip list
Remove a package from the environment
pip uninstall name(安装包名称)
Quickly install packages using various sources:
阿里源
pip install name(安装包名称) -i https://mirrors.aliyun.com/pypi/simple
清华源
pip install name -i https://pypi.tuna.tsinghua.edu.cn/simple
中科大源
pip install name -i https://pypi.mirrors.ustc.edu.cn/simple
豆瓣源
pip install name -i http://pypi.douban.com/simple/