在conda创建的虚拟环境中安装jupyter以及使用

1. 进入你的虚拟环境

复制代码
conda activate conda_env_name

2. 安装jupyter notebook

复制代码
conda install -y jupyter

3. 启动jupyter

复制代码
jupyter notebook

4. 将conda环境添加到jupyter的内核中

复制代码
conda install ipykernel 
 
python -m ipykernel install --name conda_env_name
 
python -m ipykernel install --user --name pytorch171 --display-name pytorch171

5. 查看有哪些环境

复制代码
jupyter kernelspec list

6. 删除指定kernel环境

复制代码
jupyter kernelspec uninstall your_kernel_name

遇到的问题

  1. ModuleNotFoundError: No module named 'chardet'

ModuleNotFoundError: No module named 'chardet'

During handling of the above exception, another exception occurred:

解决方法:

复制代码
pip install chardet
相关推荐
kk”8 小时前
Linux的组和权限管理
linux·运维·服务器
mohesashou9 小时前
红帽linux的K8S部署
linux·kubernetes·ansible
xiaoye-duck10 小时前
《Linux网络编程》UDP Socket 编程实战:从 Echo 回显、通用字典服务到套接字封装全流程
linux·网络·udp
拂拉氏11 小时前
【Linux】 开发工具(Makefile、git、cgdb)解析与对于操作系统的基础认识
linux·git·操作系统·makefile·cgdb
孙克旭_11 小时前
Docker 镜像构建|Vue+SpringBoot+Go 多语言项目 Dockerfile 案例
linux·运维·vue.js·spring boot·docker·dockerfile
life码农11 小时前
Linux截取Nginx指定时间段日志的三种方法(grep/awk/sed)
linux·nginx
Dawn-bit11 小时前
Linux网络进阶:TCP三次握手和四次挥手与TCP连接状态
linux·服务器·网络·tcp/ip·云计算·智能路由器
NJCloud12 小时前
MooseFS 分布式存储部署与高可用架构实践
linux·运维·分布式·架构
mounter62512 小时前
将 RDMA 引入容器:Soft-RoCE (RXE) 网络命名空间支持深度解析
linux·linux kernel·kernel·rdma·net namespace