jupyter notebook中添加anaconda已有的虚拟环境

1.激活虚拟环境:activate envname(例如我添加一个名叫pytorch的虚拟环境:activate pytorch)

2.安装ipykernel: conda install ipykernel

3.将环境添加到jupyter notebook:python -m ipykernel install --name pytorch

你可能感兴趣的:(jupyter,pytorch,python)