Microsoft Windows [Version 10.0.19045.2965]
(c) Microsoft Corporation. All rights reserved.
C:\Users\pc>nvcc -V
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2017 NVIDIA Corporation
Built on Fri_Sep__1_21:08:32_Central_Daylight_Time_2017
Cuda compilation tools, release 9.0, V9.0.176
C:\Users\pc>nvidia-smi
Fri Nov 10 14:02:45 2023
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 391.35 Driver Version: 391.35 |
|-------------------------------+----------------------+----------------------+
| GPU Name TCC/WDDM | Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
|===============================+======================+======================|
| 0 GeForce GTX 480 WDDM | 00000000:03:00.0 N/A | N/A |
| 44% 63C P12 N/A / N/A | 360MiB / 1536MiB | N/A Default |
+-------------------------------+----------------------+----------------------+
+-----------------------------------------------------------------------------+
| Processes: GPU Memory |
| GPU PID Type Process name Usage |
|=============================================================================|
| 0 Not Supported |
+-----------------------------------------------------------------------------+
C:\Users\pc>
我正在运行Python 3.11。因此,我尝试安装 TensorFlow 2.0.0 并收到以下错误:
C:\Users\pc>pip install tensorflow==2.0.0
ERROR: Could not find a version that satisfies the requirement tensorflow==2.0.0
(from versions: 2.12.0rc0, 2.12.0rc1, 2.12.0, 2.12.1, 2.13.0rc0, 2.13.0rc1, 2.13.0rc2,
2.13.0, 2.13.1, 2.14.0rc0, 2.14.0rc1, 2.14.0, 2.15.0rc0, 2.15.0rc1)
ERROR: No matching distribution found for tensorflow==2.0.0
我需要运行神经网络训练。
我应该为此 GPU 配置安装什么版本的 TensorFlow+Keras?
对于您的 GPU 配置(CUDA 9.0、NVIDIA 驱动程序 391.35),请安装 TensorFlow 1.14.0 和 Keras 2.2.4:
pip install tensorflow==1.14.0 keras==2.2.4