更新tensorflow-gpu后,为什么还要使用旧版本?

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

我将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个回答
0
投票

皮普和康达并不顺利。你要么使用Pip,要么使用Conda。

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

© www.soinside.com 2019 - 2024. All rights reserved.