gpt4 book ai didi

python - 更新tensorflow-gpu后,为什么仍然使用旧版本?

转载 作者:太空宇宙 更新时间:2023-11-03 20:59:16 24 4
gpt4 key购买 nike

我将我的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中的旧版本。

最佳答案

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

您应该能够使用 conda update tensorflow-gpu 更新您的tensorflow包

关于python - 更新tensorflow-gpu后,为什么仍然使用旧版本?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55808417/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com