一些 Conda 的常用命令

首先是 Miniconda 的下载地址,比 Anaconda 轻量多了,用起来更舒服,就是没有图形界面

Miniconda --- miniconda documentation

总结一些常用命令,省得每次需要用的时候都得一通查,注意以下都是在 Windows 下的命令,有些命令在 Linux 下会略有不同


查看版本

bash 复制代码
conda -V 

更新版本

复制代码
conda update conda

设置搜索时显示通道地址

复制代码
conda config --set show_channel_urls yes

清除索引缓存

复制代码
conda clean -i 

查看当前有哪些环境

复制代码
conda env list 
conda info -e

创建环境

bash 复制代码
conda create -n $your_env_name python=x.x

-n 也可以写成 -name


激活指定环境

bash 复制代码
conda activate $your_env_name

conda 可以不写


关闭环境

bash 复制代码
conda deactivate $env_name

conda 可以不写


删除环境

bash 复制代码
conda remove -n $your_env_name --all

查看安装了哪些包

复制代码
conda list

安装额外的包

bash 复制代码
conda install -n $your_env_name $package_name

删除环境中的某个包

bash 复制代码
conda remove --name $your_env_name $package_name
相关推荐
Python私教8 小时前
Django 6.1 RC1 实测:FETCH_PEERS 两条 SQL 解决 N+1,select_related 还需要吗?
后端·python·django
玉鸯8 小时前
Agent 的任务编排:从 System Prompt 到 Hierarchical Multi-Agent
python·llm·agent
Python私教8 小时前
Django 6.0 自带 Tasks 到底能不能替代 Celery?跑完 3 组后台任务后我有答案了
后端·python·django
我的xiaodoujiao8 小时前
快速学习Python基础知识详细图文教程14--模块
开发语言·python·学习·测试工具
残影飞雪8 小时前
Ollama对话脚本
python
jerryinwuhan8 小时前
数据预处理技术 2026-2027-1 开篇-课程介绍
大数据·python
看昭奚恤哭9 小时前
ontainer App】Container App无法从Container Registries 拉取镜像 - 报错 Forbidden
后端·python·flask
0566469 小时前
Python康复训练——数据结构
数据结构·windows·python
Tinyfacture9 小时前
接口自动化之添加商品(pytest)
python·测试工具·自动化·pytest
听雨入夜9 小时前
“同声传译”还是“全文翻译”?为何HotSpot虚拟机仍要保留解释器?
开发语言·python