在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
相关推荐
程序猿编码1 小时前
自定义命令执行器:C++中命令封装的深度探索(C/C++实现)
linux·c语言·c++·网络安全·shell·命令行
黑牛先生3 小时前
【Linux】动静态库
linux·运维·服务器
vortex53 小时前
Shell基础:中括号的使用
linux·运维·bash·shell
-VE-7 小时前
myshell
linux·c++
身在江湖的郭大侠9 小时前
Linux内核
linux·服务器
破-风11 小时前
linux的用法
linux·运维·服务器
涛ing15 小时前
32. C 语言 安全函数( _s 尾缀)
linux·c语言·c++·vscode·算法·安全·vim
__雨夜星辰__15 小时前
Linux 学习笔记__Day2
linux·服务器·笔记·学习·centos 7
大耳朵土土垚15 小时前
【Linux】日志设计模式与实现
linux·运维·设计模式