Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to install tensorflow 2.1 with conda?

I have installed conda version 4.8.3 and I'm try to install tensorflow 2.1, but commands like

conda isntall tensorflow

or

conda install -c anaconda tensorflow

all ends up installing tensorflow 1.14, no matter what.

Any tips suggestion how to get tensorflow 2 installed?

Thank you.

like image 211
Gigino Avatar asked Oct 15 '25 04:10

Gigino


2 Answers

This works fine for the GPU version: conda install -c anaconda tensorflow-gpu==2.1 or for CPU version: conda install -c anaconda tensorflow==2.1

Also, you may have to downgrade your python version to 3.6

like image 174
Pouria Nikvand Avatar answered Oct 18 '25 09:10

Pouria Nikvand


Create a new env and specify the version you want:

conda create --name tf_21 python tensorflow=2.1
like image 21
merv Avatar answered Oct 18 '25 09:10

merv



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!