conda 虚拟环境相关命令

创建虚拟环境

powershell 复制代码
conda create -n 虚拟环境名 python=版本号

查看所有的conda虚拟环境

powershell 复制代码
conda env list

进入虚拟环境

powershell 复制代码
conda activate 虚拟环境名

退出当前虚拟环境,回到base

powershell 复制代码
source deactivate

删除某个整个conda虚拟环境

powershell 复制代码
conda remove -n 虚拟环境名 --all

在conda虚拟环境中安装 安装包

先切换到需要安装的conda虚拟环境

powershell 复制代码
pip install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple

只在conda虚拟环境中装,不在pip环境中装

powershell 复制代码
conda install 包名

查看当前装了哪些包

先切换到需要安装的conda虚拟环境

查看pip中有哪些包:

powershell 复制代码
pip list

查看conda虚拟环境中有哪些包:

powershell 复制代码
conda list
相关推荐
oyguyteggytrrwwwrt1 小时前
3dgs渲染部分详细注释
python
李白你好3 小时前
Windows 离线 Linux 提权辅助查询工具
linux
天天爱吃肉82183 小时前
【重磅发布:拿下新超仁达代理权 】
大数据·人工智能·python·功能测试·汽车
神王宝宝 王者小学3 小时前
面向领域驱动架构的查询实现方式
前端·python·架构
Lust Dusk3 小时前
记一次Linux应急响应题目解析
linux·运维·服务器·网络·安全·网络安全
ShineWinsu4 小时前
对于Linux:五种IO模型以及非阻塞IO的详细解析
linux·c++·面试·io·阻塞·非阻塞·fcntl
千千寰宇4 小时前
[Linux/Ollama] Termux : 一款运行在 Android 平台上的开源终端模拟器与 Linux 环境应用、支持在手机上基于Ollama部署LLM
linux
ningmengjing_4 小时前
Redis 从入门到实战:Python操作全攻略
数据库·redis·python
️学习的小王4 小时前
智能文档助手:基于RAG的本地化文档问答系统实战指南
人工智能·python·机器学习
不瘦80斤不改名5 小时前
05-vibe-coding-向agentic-engineering演进
人工智能·笔记·python·prompt