anaconda基础指令
功能 | 命令 |
---|---|
创建虚拟环境 | conda create -n 环境名称 python = 3.7 (python版本为3.7) |
删除虚拟环境 | conda remove -n 环境名称 –all |
激活虚拟环境 | conda activate 环境名称 |
关闭虚拟环境 | conda deactivate |
查看已安装的库 | conda list |
列出当前已有环境 | conda env list |
删除环境中某个库 | conda remove 包名称 (已进入虚拟环境内) |
安装库 | pip install 库名称 |
安装指定版本的库 | pip install 名称==版本 –user (如,pip install pillow==6.2.2 –user) |
打开jupyter book | jupyter notebook |
添加anaconda的TUNA镜像 | conda -config –add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/ |