I was trying to print cuda information inside Python
import subprocess subprocess.run(["nvcc","--version"],capture_output=True)