在jupyter中加入虚拟环境

  • 进入环境
  1. conda activate pytorch(conda环境名字)
  • 安装内核
  1. pip install ipykernel
  • 加入内核
  1. python -m ipykernel install --name=web_env(conda环境名字)