2️⃣在Python虚拟环境下使用 VS Code or PyCharm
Implementing PyTorch or PyCharm with VS code in virtual python environment
Last updated
Implementing PyTorch or PyCharm with VS code in virtual python environment
Last updated
cmd
nvidia-smi
Install VS Code
Open VS Code
Install extention (Python, Jupyter)
Ctrl + Shift + P
Python: Select Interpreter (Select virtual python environment)
Select pytorch (Python 3.11.9)
Install PyCharm
Create a new project
Select Custom environment
Select existing
Select Conda Type
Select Environment
Download cuDNN Library
Select Windows -> x86_64 -> Tarball -> 12 (CUDA Version)
Download and Unzip
go to C:\Program Files\NVIDIA Corporation
Create new folder: CUDNN
Create a new folder, name it is v9.0 which in the folder CUDNN
copy unzip files into the v9.x folder
add path C:\Program Files\NVIDIA Corporation\CUDNN\v9.x\bin into Environment Variables