You might still have some path for CUDA 12, from command prompt run
set and copy all the results then post them like below
C:\Users\mikel>set
ACSvcPort=17532
ALLUSERSPROFILE=C:\ProgramData
APPDATA=C:\Users\mikel\AppData\Roaming
ChocolateyInstall=C:\ProgramData\chocolatey
ChocolateyLastPathUpdate=133199547072949048
CommonProgramFiles=C:\Program Files\Common Files
CommonProgramFiles(x86)=C:\Program Files (x86)\Common Files
CommonProgramW6432=C:\Program Files\Common Files
COMPUTERNAME=DESKTOP-QNJQ7BH
ComSpec=C:\Windows\system32\cmd.exe
CUDA_PATH=C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4
CUDA_PATH_V12_3=C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.3
CUDA_PATH_V12_4=C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4
DriverData=C:\Windows\System32\Drivers\DriverData
EnableLog=WARNING
HOMEDRIVE=C:
HOMEPATH=\Users\mikel
LOCALAPPDATA=C:\Users\mikel\AppData\Local
LOGONSERVER=\\DESKTOP-QNJQ7BH
NUMBER_OF_PROCESSORS=32
NVTOOLSEXT_PATH=C:\Program Files\NVIDIA Corporation\NvToolsExt\
OneDrive=C:\Users\mikel\OneDrive
OneDriveConsumer=C:\Users\mikel\OneDrive
OS=Windows_NT
Path=C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\bin;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\libnvvp;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.3\bin;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.3\libnvvp;C:\Python311\Scripts\;C:\Python311\;C:\Program Files\Microsoft\jdk-11.0.12.7-hotspot\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Users\mikel\AppData\Local\Microsoft\WindowsApps;C:\Users\mikel\AppData\Local\GitHubDesktop\bin;C:\Users\mikel\.dotnet\
tools;C:\Users\mikel\AppData\Local\Programs\Microsoft VS Code\bin;C:\Program Files\dotnet\;C:\Program Files\Tesseract-OCR;C:\Users\mikel\anaconda3\Scripts;C:\Users\mikel\anaconda3;C:\ProgramData\chocolatey\bin;C:\Windows\System32\OpenSSH\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\Docker\Docker\resources\bin;C:\Users\mikel\AppData\Roaming\npm;C:\Program Files\NVIDIA\CUDNN\v8.9;C:\Program Files\NVIDIA\CUDNN\v8.9\bin;C:\Program Files\NVIDIA\CUDNN\v8.9\zlib\dll_x64;C:\Program Files\nodejs\;C:\Program Files\Git\cmd;;C:\Program Files\NVIDIA Corporation\NVIDIA App\NvDLISR;C:\Program Files\NVIDIA Corporation\Nsight Compute 2024.1.0\;C:\Users\mikel\AppData\Local\Microsoft\WindowsApps;C:\Users\mikel\AppData\Local\GitHubDesktop\bin;C:\Users\mikel\AppData\Local\Programs\Microsoft VS Code\bin;C:\Users\mikel\anaconda3\Scripts;C:\Users\mikel\anaconda3;C:\Users\mikel\.dotnet\tools;C:\Users\mikel\AppData\Roaming\npm
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;.PY;.PYW
PROCESSOR_ARCHITECTURE=AMD64
PROCESSOR_IDENTIFIER=AMD64 Family 25 Model 33 Stepping 0, AuthenticAMD
PROCESSOR_LEVEL=25
PROCESSOR_REVISION=2100
ProgramData=C:\ProgramData
ProgramFiles=C:\Program Files
ProgramFiles(x86)=C:\Program Files (x86)
ProgramW6432=C:\Program Files
PROMPT=$P$G
PSModulePath=C:\Program Files\WindowsPowerShell\Modules;C:\Windows\system32\WindowsPowerShell\v1.0\Modules
PUBLIC=C:\Users\Public
RlsSvcPort=22112
SESSIONNAME=Console
SystemDrive=C:
SystemRoot=C:\Windows
TEMP=C:\Users\mikel\AppData\Local\Temp
TMP=C:\Users\mikel\AppData\Local\Temp
USERDOMAIN=DESKTOP-QNJQ7BH
USERDOMAIN_ROAMINGPROFILE=DESKTOP-QNJQ7BH
USERNAME=mikel
USERPROFILE=C:\Users\mikel
windir=C:\Windows
__PSLockDownPolicy=0