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

plaintext
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