Continuously getting the error: 'nvidia-smi' is not recognized as an internal or external command, operable program or batch file

disclaimer: I am not super experienced with python

I have been trying to set up SAM (segment anything model by meta), but have been running into issues with installing pytorch. I have followed countless tutorials on youtube to install an Nvidia driver, but it does not seem to work out properly regardless of everything that I have tried. Here are some of the issues that I can’t fix:

  • C:\Users\xx>nvidia-smi :‘nvidia-smi’ is not recognized as an internal or external command, operable program or batch file. ~~~~ when I run ‘nvcc --version’ it says that version 12.4 is currently what I have. I do not understand why it says a version, but it does show me anything for ‘nvidia-smi.’ I have also tried to uninstall and re-install different version, but the same issue persists.

  • In my C:\Program Files\NVIDIA Corporation directory, I do not have and ‘NVSMI’ folder, which I have seen people mention online. They have also said that restarting their device ended up working and showing the folder, but I have tried that and still don’t see it. I also don’t have a ‘nvml.dll’ file in my C:\Windows\System32\DriverStore directory.

  • When trying to launch the NVIDIA control panel, it says ‘NVIDIA display settings are not available. An NVIDIA graphic card was not detected in your system.’

I have an HP Envy Windows 11, so I am not sure if it is my device that is causing an issue. If anyone has suggestions, please let me know.

Did you find a solution ? I’m facing the same issue

I have been having a similar issue becuase I ended up installing the NVIDEA desktop applicatoin, was curious to know what was in it. It ended up reinstalling drivers and all my system path variables ended up vanishing. nvidea-smi was working, then it was not. So I installed CUDA toolkit again, reinstalled drivers, etc. I searched all the folder, but then realized that nvidea-smi included in the driver installation. So, I went into device manager and checked my display adapter drivers and in that I found that nvidea-smi.exe was in the listing of installed drivers an, for me, the location was at: C:\Windows\System32\nvidia-smi.exe"

so if you have it installed, just type: & “C:\Windows\System32\nvidia-smi.exe” in your terminal/powershell and you should see the tables with the following headers:"

NVIDIA-SMI 572.47 Driver Version: 572.47 CUDA Version: 12.8 |

etc…

Hope this helps anyone else who wound up here!