在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
相关推荐
Gaoithe4 小时前
ubuntu 端口复用
linux·运维·ubuntu
德先生&赛先生5 小时前
Linux编程:1、文件编程
linux
程序猿小D5 小时前
第16节 Node.js 文件系统
linux·服务器·前端·node.js·编辑器·vim
多多*6 小时前
微服务网关SpringCloudGateway+SaToken鉴权
linux·开发语言·redis·python·sql·log4j·bootstrap
晓枫-迷麟8 小时前
【使用conda】安装pytorch
人工智能·pytorch·conda
IT界小黑的对象8 小时前
virtualBox部署ubuntu22.04虚拟机 NAT+host only 宿主机ping不通虚拟机
linux·运维·服务器
SilentCodeY8 小时前
Ubuntu 系统通过防火墙管控 Docker 容器
linux·安全·ubuntu·系统防火墙
weixin_527550408 小时前
Linux 环境下高效视频切帧的实用指南
linux·运维·音视频
keson要进步8 小时前
CICD实战(二)-----gitlab的安装与配置
linux·运维·gitlab
藥瓿亭9 小时前
K8S认证|CKS题库+答案| 4. RBAC - RoleBinding
linux·运维·服务器·云原生·容器·kubernetes·cks