Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to update Tensorflow on mac?

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?

This is the python code which I used to find version

 import tensorflow as tf;
 print(tf.__version__);
like image 610
Rajitha Perera Avatar asked Feb 28 '17 09:02

Rajitha Perera


People also ask

How do I find TensorFlow version on Mac?

Check tensorflow Version Mac To check which version of tensorflow is installed, use pip show tensorflow or pip3 show tensorflow in your macOS terminal.

Can I use TensorFlow on Mac M1?

Works on regular Mac M1 too! The advent of Apple's M1 chip has revolutionized the field of Deep Learning for the MacOS community. The M1 chip contains a built-in graphics processor that enables GPU acceleration.


2 Answers

If you are using anaconda;

>conda update tensorflow

If you are using pip;

>pip install tensorflow --upgrade

If you want to force install a specific version on conda;

>conda install tensorflow=1.0.0

If you want to force install a specific version on pip;

>pip install 'tensorflow==1.0.0' --force-reinstall
like image 60
umutto Avatar answered Oct 14 '22 07:10

umutto


In anaconda cloud, first pick a channel which has the latest version of tensorflow binary. The latest versions are usually available at the channel conda-forge

conda update -f -c conda-forge tensorflow

This will upgrade your installation to the very latest version available. As of this writing version 1.4.0-py36_0

like image 34
kmario23 Avatar answered Oct 14 '22 08:10

kmario23