check cuda version anaconda code example Example 1: cuda version check nvcc --version Example 2: conda check cuda version conda list cudatoolkit