jupyter notebook配置虚拟环境

  1. 安装ipykernel工具

conda install ipykernel

  1. 为虚拟环境下创建kernel

conda install -n 虚拟环境名称 ipykernel

  1. 环境写入notebook的kernel中

python -m ipykernel install --user --name 虚拟环境名称 --display-name "notebook中显示的名称"

posted @ 2021-10-23 13:50  万物小白  阅读(142)  评论(0编辑  收藏  举报