# Path error trying to run nvcc

So, I’m trying to use nvcc on my first .cu and i get “nvcc fatal : Cannot find compiler ‘cl.exe’ in PATH”.

I do not know how to fix this. I made a system environment variable with name cl.exe and value

C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.27.29110\bin\Hostx64\x64\cl.exe

which is the directory of cl.exe from what I looked up to solve this, and I still get the same error. Can someone explain to me how to put this as my path for nvcc? I have never messed with path variables before so I have no idea how they work. Thanks -JS