That is the standard way people profile python codes. I’m sure you covered all of this, but a couple of simple questions. Do you also have a directory named python in the location you are calling nsys from? Are you sure that “which python” works from here?
Also you seem to be running in an Admin pathway w/o admin privileges, have you tried with admin?
OS: windows 11
CUDA: 11.8
Nsight Systems: 2023.2.3.1001-32894139v0
GPU: RTX 4070 Laptop (BTW, seems CUDA toolchains are not fully-supported well on 4070,as I know CUDA debugger in Visual studio is unsupported).
This looks like a bug. As a workaround please provide the full path of the python executable within double quotes, e.g. “C:\Program Files\Python39\python.exe”