问题描述:
在jupyter中运行python文kernel出错,原因时没有合适的环境
解决方法:
- 首先查找本机中已经存在的环境(这里使用的是conda环境管理器)
conda env list
- 进入合适的环境安装ipykernel
conda activate 环境名
pip install ipykernel - 进入jupyter
python -m ipykernel install --name 环境名
jupyter notebook
在jupyter中运行python文kernel出错,原因时没有合适的环境
conda env list
conda activate 环境名
pip install ipykernel
python -m ipykernel install --name 环境名
jupyter notebook