Found no NVIDIA driver?

My code can run successfully in pycharm. However, the same code can’t run in nsight system, and shows that “Found no NVIDIA driver”. What reasons can cause this?