jupyter添加、删除、查看内核

以下操作均在pytorch环境中操作

1.检查是否有ipykernel

python 复制代码
python -m ipykernel --version

2.没有就安装

python 复制代码
python -m pip install ipykernel

3.查看内核环境列表

python 复制代码
jupyter kernelspec list

4.添加内核

python 复制代码
python -m ipykernel install --user --name 环境名称 --display-name "在jupyter中显示的环境名称"

# 如:
python -m ipykernel install --user --name=pytorch --display-name show_name_pytorch

5.移除内核

python 复制代码
jupyter kernelspec remove 环境名称
相关推荐
外收内放1 天前
面向对象高级(实战案例)
开发语言·python·学习
专业程序开发源1 天前
springboot欧缇蔓月子中心管理系统82697-计算机课程设计、毕业设计
java·spring boot·后端·python·spring·django·课程设计
FPGA小迷弟1 天前
用 Claude Code 重构遗留系统:从评估到落地的完整实践指南
c++·python·ai·plotly·django·ai编程·claude
卷无止境1 天前
面向arm64桌面客户端开发全景:语言、框架与生态
后端·python
fanruitian1 天前
python else用法
开发语言·python
Thinker QAQ1 天前
并发编程(十一):Shared Memory 与 Message Passing——关系与组合使用
java·python·go·并发编程·shared memory·message passing
用户8356290780511 天前
如何使用 Python 对 Excel 数据进行分组和分级显示
后端·python
vx_Biye_Design1 天前
django房屋租赁推荐系统78455-计算机课程设计、毕业设计
vue.js·spring boot·后端·python·django·课程设计·express
学Linux的语莫1 天前
python中类的常见写法
开发语言·python·状态模式
垆边人似月.1 天前
Python中如何使用get函数实现频次查询
服务器·前端·python