尝试在 ubuntu 上安装 tensorflow-gpu 时,我不断收到“python setup.py egg_info 未成功运行”

问题描述 投票:0回答:1

我尝试更新 setuptools 但仍然没有成功。

    .....
    Collecting tensorflow-gpu

    × python setup.py egg_info did not run successfully.
    │ exit code: 1
    ╰─> [39 lines of output]
    ....
    ....
    
python tensorflow setup.py python-packaging
1个回答
0
投票

经过更多挖掘后,我发现不再支持 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
    =========================================================
© www.soinside.com 2019 - 2024. All rights reserved.