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 ipykernelpython -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