I am having TensorFlow version 2.0.0 in my anaconda environment. I want to upgrade it to an upgraded version. How can I do it?
Asked
Active
Viewed 1.7k times
5
-
`conda upgrade` – TYZ Aug 11 '21 at 13:08
-
1If you're on windows, see this SO post, https://stackoverflow.com/questions/46840496/upgrade-tensorflow-on-windows – gernworm Aug 11 '21 at 13:10
-
4you can use ```pip install tensorflow --upgrade``` in your anaconda environment (activate it first). Normally you could do ```conda upgrade ...``` but for TF this does not work. – phuycke Aug 11 '21 at 13:10
-
Does this answer your question? [How do I install the most recent Tensorflow (here: 2.2) on Windows when conda does not yet support it?](https://stackoverflow.com/questions/61357038/how-do-i-install-the-most-recent-tensorflow-here-2-2-on-windows-when-conda-do) – Vidya Ganesh Aug 11 '21 at 13:13
1 Answers
6
conda update <package name>
or
conda install <package name>
Note: A second install equals an Override...
Specific to your case:
conda install -c conda-forge -n <environment> tensorflow==<wanted version>
-
Why Conda Forge channel? Mixing in **conda-forge**-sourced packages into an Anaconda base environment can be problematic. – merv Aug 11 '21 at 14:20
-
That is correct, although it should not make that big a difference in this case. Honestly, I was just searching and copying out a command I recently used, so that's the explanation xD – Aug 11 '21 at 17:28