在jupyter中添加anaconda虚拟环境 1、打开conda的prompt激活想要添加的环境导入kernel 2、进入jupyter 1、打开conda的prompt 激活想要添加的环境 # 激活环境 conda activate tensorflow 导入kernel conda install ipykernel # 注意:name后跟当前环境名 python -m ipykernel install --user --name mydemo --display-name mydemo 2、进入jupyter jupyter notebook change kernal