在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 小时前
Shell编程——if条件语句
linux·运维·shell
Dawn-bit2 小时前
Linux 运维基础扩展:跳板机、堡垒机与物理服务器全流程
linux·运维·服务器·云计算·运维开发
新时代牛马2 小时前
Linux 定时任务:crontab、anacron 与systemd timer
linux·运维·服务器
mounter6252 小时前
Linux 7.2 引入更灵活的块设备错误注入机制
linux·linux kernel·kernel·disk·error injection
cpolar技术支持2 小时前
Docker 容器启动失败怎么查?端口、日志、权限与网络排障完整教程
linux·docker·容器·cpolar·网络排障
布莱克6053 小时前
Linux 常用命令详解:从入门到实战
linux·运维·服务器
朽棘不雕4 小时前
可执行程序的格式
linux
IT摆渡者4 小时前
11Panel 部署雷池WAF
linux
学习路上_write4 小时前
Linux黑马命令学习
linux·运维·服务器
yunwei375 小时前
eBPF 教程:追踪 CUDA GPU 操作
linux·后端·性能优化