我的当前Tensorflow版本是0.10.0。我需要更新到最新版本。最新版本是1.0.0。有没有可以在终端中使用的更新方法?
这是我用来查找版本的Python代码
import tensorflow as tf; print(tf.__version__);
回答:
如果你使用的是anaconda;
>conda update tensorflow
如果你使用的是pip;
>pip install tensorflow --upgrade
如果你想在conda上强制安装特定版本;
>conda install tensorflow=1.0.0
如果你想在pip上强制安装特定版本;
>pip install 'tensorflow==1.0.0' --force-reinstall