My current Tensorflow version is 0.10.0. I need to update it to latest version.Latest one is 1.0.0.Is there any method that I can use in terminal?
这是我用来查找版本的Python代码
block 引用>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
关于python-3.x - 如何在 Mac 上更新 Tensorflow?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42504652/