Consistently unable use CUDA even with reinstall pytorch, CUDA, and GPU driver

pip show torch
Name: torch
Version: 2.0.1
Summary: Tensors and Dynamic neural networks in Python with strong GPU acceleration
Home-page: https://pytorch.org/
Author: PyTorch Team
Author-email: packages@pytorch.org
License: BSD-3
Location: c:\users\administrator\appdata\roaming\python\python310\site-packages
Requires: filelock, jinja2, networkx, sympy, typing-extensions
Required-by: torchaudio, torchvision
Note: you may need to restart the kernel to use updated packages.
WARNING: Ignoring invalid distribution -rotobuf (d:\anaconda\lib\site-packages)
WARNING: Ignoring invalid distribution -orch (d:\anaconda\lib\site-packages)

!nvcc --version
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2023 NVIDIA Corporation
Built on Mon_Apr__3_17:36:15_Pacific_Daylight_Time_2023
Cuda compilation tools, release 12.1, V12.1.105
Build cuda_12.1.r12.1/compiler.32688072_0

!nvidia-smi
Fri Jun 16 18:34:45 2023
±--------------------------------------------------------------------------------------+
| NVIDIA-SMI 536.23 Driver Version: 536.23 CUDA Version: 12.2 |
|-----------------------------------------±---------------------±---------------------+
| GPU Name TCC/WDDM | Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap | Memory-Usage | GPU-Util Compute M. |
| | | MIG M. |
|=========================================+======================+======================|
| 0 NVIDIA GeForce GTX 1070 WDDM | 00000000:01:00.0 On | N/A |
| 0% 47C P8 11W / 151W | 728MiB / 8192MiB | 3% Default |
| | | N/A |
±----------------------------------------±---------------------±---------------------+

±--------------------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=======================================================================================|
| 0 N/A N/A 1632 C+G …2txyewy\StartMenuExperienceHost.exe N/A |
| 0 N/A N/A 3464 C+G …5n1h2txyewy\ShellExperienceHost.exe N/A |
| 0 N/A N/A 7472 C+G C:\Windows\explorer.exe N/A |
| 0 N/A N/A 7764 C+G …Experiences.TextInput.InputApp.exe N/A |
| 0 N/A N/A 8248 C+G …Cortana_cw5n1h2txyewy\SearchUI.exe N/A |
| 0 N/A N/A 8532 C+G …Cortana_cw5n1h2txyewy\SearchUI.exe N/A |
| 0 N/A N/A 9048 C+G …0_x64__8wekyb3d8bbwe\YourPhone.exe N/A |
| 0 N/A N/A 10564 C+G …1.0_x64__8wekyb3d8bbwe\Video.UI.exe N/A |
| 0 N/A N/A 11564 C+G …crosoft\Edge\Application\msedge.exe N/A |
| 0 N/A N/A 13776 C+G …oogle\Chrome\Application\chrome.exe N/A |
| 0 N/A N/A 15012 C+G …ience\NVIDIA GeForce Experience.exe N/A |
| 0 N/A N/A 15776 C+G …siveControlPanel\SystemSettings.exe N/A |
±--------------------------------------------------------------------------------------+

torch.cuda.is_available()
Out[9]: False

I guess you have installed the CPU-only binary so make sure torch.version.cuda shows a valid CUDA runtime.
You can post code snippets by wrapping them into three backticks ```