Conda常用命令

清屏

bash 复制代码
cls

创建虚拟环境,并指定 Python 版本

bash 复制代码
conda create -n 环境名 python=3.9

删除虚拟环境

bash 复制代码
conda remove -n 环境名 --all

安装库,并指定版本

bash 复制代码
pip install numpy==1.21.5 -i https://pypi.tuna.tsinghua.edu.cn/simple

查看当前环境下某个库的版本(以 numpy 为例)

bash 复制代码
pip show numpy

安装 ipykernel(在虚拟环境创建之后运行)

bash 复制代码
pip install ipykernel -i https://pypi.tuna.tsinghua.edu.cn/simple

将虚拟环境导入 Jupyter 的 kernel 中

bash 复制代码
python -m ipykernel install --user --name=环境名

删除虚拟环境的 kernel 内核

bash 复制代码
jupyter kernelspec remove 环境名

列出所有Jupyter内核

bash 复制代码
jupyter kernelspec list
相关推荐
Zucker n1 天前
文献发现、课题组织与证据可追溯的论文阅读。
论文阅读·windows·ubuntu
flyingonpine2 天前
PowerShell脚本数字签名实战:自签名证书、代码签名与信任链验证
windows·信任链
goehou2 天前
让 AI 替我操作这台电脑,先把手能伸多远定下来
windows·自动化·权限管理·ai agent
公子小六2 天前
基于.NET的Windows窗体编程之WinForms数据持久化(1)
windows·microsoft·c#·.net·winforms
2601_967987373 天前
安装 Redis 或 Redis Stack
linux·windows·redis·macos·安装
xbzb3 天前
自定义 yum 软件源:Linux 上 createrepo,Windows 上纯 Python 也能造
linux·运维·windows·python·yum·createrepo
武雄(小星Ai)3 天前
Ollama报llama-server binary not found排坑实录:服务活着引擎没了
人工智能·windows·大模型·ollama·排坑
叼烟扛炮4 天前
[LangChain] 学习笔记(06):突破大模型限制——结构化输出(Structured Output)
windows·笔记·学习·langchain
Thneonl4 天前
桌宠穿透不是一行 SetWindowLong
windows·程序员
艺杯羹5 天前
Windows原生软件锁设计:从暴力杀进程丢数据到零轮询事件驱动架构
windows·系统架构·开源·开源软件·内存管理·开源协议