python-3.x - 如何在 Mac 上更新 Tensorflow?

标签 python-3.x machine-learning tensorflow

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代码

 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/

相关文章:

python-3.x - 如何在matplotlib中的直方图上绘制cdf

python-3.x - 如何使用 sklearn 中经过训练的 NB 分类器来预测电子邮件的标签?

python - 什么 tensorflow 分布来表示分类数据列表

python - Tensorflow:tf.assign 不分配任何东西

Python:创建大小为 n^2 的元组的时间和空间复杂度

python-3.x - pip - 安装特定的软件包版本不起作用

python-3.x - Pandas:过滤掉包含两个所需值的行(唯一ID)

machine-learning - 机器学习,为什么我们需要对数据进行加权

r - 使用 regsubsets 进行 Predict()

tensorflow - Tensorflow 文档中输出空间的维数是多少?