在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
相关推荐
hj28625113 分钟前
Linux网络基础一
linux·运维
小义_39 分钟前
【Linux 1】
linux·运维·云原生·红帽
面向对象World43 分钟前
Z8350 Broadcom SDIO网卡调试Ubuntu 22.04 Server版
linux·运维·ubuntu
Irissgwe1 小时前
12、多路转接 select
linux·io多路转接·select
无足鸟ICT1 小时前
【RHCA+】编辑多个文件
linux
fengyehongWorld1 小时前
Linux fd命令
linux
AIMath~1 小时前
hermes agent安装在Linux centos中
linux·运维·服务器
赵民勇1 小时前
如何查看一个二进制程序是否设置了rpath或runpath?
linux·c++
小王师傅661 小时前
深入解析:Docker在Mac上的运行本质与Linux进程管理机制
linux·macos·docker
Irissgwe2 小时前
9、数据链路层
linux·网络·mac·ip·数据链路层·arp协议·以太网帧格式