如何更新Mac上的Tensorflow?

Raj*_*era 6 machine-learning python-3.x tensorflow

我目前的Tensorflow版本是0.10.0.我需要将它更新到最新版本.最新版本是1.0.0.有什么方法可以在终端中使用吗?

这是我用来查找版本的python代码

 import tensorflow as tf;
 print(tf.__version__);
Run Code Online (Sandbox Code Playgroud)

umu*_*tto 14

如果你使用的是anaconda;

>conda update tensorflow
Run Code Online (Sandbox Code Playgroud)

如果你正在使用pip;

>pip install tensorflow --upgrade
Run Code Online (Sandbox Code Playgroud)

如果要在conda上强制安装特定版本;

>conda install tensorflow=1.0.0
Run Code Online (Sandbox Code Playgroud)

如果要在pip上强制安装特定版本;

>pip install 'tensorflow==1.0.0' --force-reinstall
Run Code Online (Sandbox Code Playgroud)