将虚拟环境的python解释器添加到jupyter notebook的内核

1
2
3
4
5
6
print('he')
cmd进入虚拟环境(torch_env)
activate torch_env
pip install ipykernel ipython
ipython kernel install --user --name torch_env
再次进入jupyter notebook