【问题标题】:After updating tensorflow-gpu, Why still use old version?更新 tensorflow-gpu 后,为什么还要使用旧版本?
【发布时间】:2019-09-12 11:22:15
【问题描述】:

我将 tensorflow-gpu 从 1.4.0 更新到 1.13.1 版本。但是当我导入 tensorflow 时,它仍然使用旧版本。 喜欢:

common@Dell-7920:~/Brain$ python3 -c'import tensorflow as tf; print(tf.__version__)'
1.4.0
common@Dell-7920:~/Brain$ pip3 list | grep tensor
tensorboard                        1.13.1
tensorflow-estimator               1.13.0
tensorflow-gpu                     1.13.1
tensorflow-tensorboard             0.4.0

pip3 仅显示系统中的新版本。但是导入的是旧版本。

更新:

common@Dell-7920:~/Brain$ conda list| grep tensor
tensorflow-gpu            1.4.0                     <pip>
tensorflow-tensorboard    0.4.0                     <pip>

tensorflow 版本是 conda 中的旧版本。

【问题讨论】:

    标签: python tensorflow pip anaconda


    【解决方案1】:

    Pip 和 Conda 相处得不好。您可以使用 Pip 或 Conda。

    您应该可以使用 conda update tensorflow-gpu 更新您的 tensorflow 包

    【讨论】:

    • 可能是因为 pip 和 conda 不能一起工作。但大多数教程都说使用 pip update。
    猜你喜欢
    • 1970-01-01
    • 2020-04-26
    • 2021-10-27
    • 1970-01-01
    • 2017-03-08
    • 1970-01-01
    • 1970-01-01
    • 2019-02-02
    • 2012-10-05
    相关资源
    最近更新 更多