CUDA available test is false

Install pytorch using the following command line
conda install pytorch==1.12.1 torchvision==0.13.1 torchaudio==0.12.1 cudatoolkit=10.2 -c pytorch

The result is
pytorch 1.12.1 py3.10_cpu_0 pytorch
pytorch-mutex 1.0 cpu pytorch
It seems that the CPU version is installed

Use the following command to test cuda

print(torch.cuda.is_available())
False

What’s going wrong, any advice welcome!

Attach CUDA related information

That’s right, as also the version indicates.
You could try to install the older pip wheels if the conda package does not work or you could update to a more recent release.

Thanks for your suggestion. After I downgraded python and pytorch, I successfully saw True