我尝试更新 setuptools 但仍然没有成功。
.....
Collecting tensorflow-gpu
× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [39 lines of output]
....
....
经过更多挖掘后,我发现不再支持 tensorflow-gpu,根据 https://pypi.org/project/tensorflow-gpu/ 它已被替换为一个空包,这将在安装时产生错误。
=========================================================
The "tensorflow-gpu" package has been removed!
Please install "tensorflow" instead.
Other than the name, the two packages have been identical
since TensorFlow 2.1, or roughly since Sep 2019. For more
information, see: pypi.org/project/tensorflow-gpu
=========================================================