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
相关推荐
埃博拉酱2 天前
VS Code Remote SSH 连接 Windows 服务器卡在"下载 VS Code 服务器":prcdn DNS 解析失败的诊断与 BITS 断点续传
windows·ssh·visual studio code
唐宋元明清21883 天前
.NET 本地Db数据库-技术方案选型
windows·c#
加号33 天前
windows系统下mysql多源数据库同步部署
数据库·windows·mysql
tryCbest3 天前
Windows环境下配置pip镜像源
windows·pip
呉師傅3 天前
火狐浏览器报错配置文件缺失如何解决#操作技巧#
运维·网络·windows·电脑
百事牛科技3 天前
保护文档安全:PDF限制功能详解与实操
windows·pdf
一个人旅程~3 天前
如何用命令行把win10/win11设置为长期暂停更新?
linux·windows·经验分享·电脑
一个假的前端男3 天前
[特殊字符] Flutter 安装完整指南 Windows—— 2026最新版
windows·flutter
倚肆3 天前
在 Windows Docker 中安装并配置 Nginx (映射 Windows 端口与路径)
windows·nginx·docker
破无差3 天前
拯救你的C盘
windows