Anaconda常用控制命名
- 安装包
conda install XX包名
或者也可采用pip形式安装,如:
pip insatll XX包名
(使用pip安装时,如果电脑中python运行环境较多,最好进入Anaconda下面的Scripts文件中进行pip安装)
如果需要卸载包,只需要将install改为uninstall即可
- 其他常用命令
conda --version 查看conda版本
conda info -e 查看Anaconda环境,其中base为默认环境
conda env list 查看Anaconda中创建的新的运行环境:
conda list 查看Anaconda中安装的包
- 创建新的运行环境:
conda create --name your_env_name
或者
conda create -n your_env_name
例如:
创建python3.5运行环境;
conda create --name python35 python=3.5
结果如下:
- 进入创建的环境:
activate xXX环境名
conda deactivate 退出运行环境
- 删除运行环境
conda remove --name XXX --all
以删除刚刚创建的python35环境为例:
检查删除后的环境: