1. 进入你的虚拟环境

conda activate conda_env_name

2. 安装jupyter notebook

conda install -y jupyter
pip install 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

Logo

旨在为数千万中国开发者提供一个无缝且高效的云端环境,以支持学习、使用和贡献开源项目。

更多推荐