jypyter 添加pytorch 环境

进入虚拟环境

(base) C:\Users\waja>activate mytorch

安装Jypyter所需的ipykernel

(mytorch) C:\Users\waja>pip install --user ipykernel

添加环境到jupyter,可以更改显示名称
(mytorch) C:\Users\waja>python -m ipykernel install --user --name=mytorch --display-name "mytorch_gpu"
Installed kernelspec mytorch in C:\Users\waja\AppData\Roaming\jupyter\kernels\mytorch

你可能感兴趣的:(pytorch,python,人工智能)