Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

installing tensorflow 1.x to use tensorflow.contrib

I downloaded anaconda which has a python 3.8 version. and i installed tensorflow with pip install tensorflow.

from tensorflow.contrib import learn in my code did not work as tensorflow 1.x doesnt work in python 3.8.

I downgraded to python 3.7 by conda install python==3.7. and then pip install tensorflow==1.15. But it still did not work and errors came up -- regarding python version still being 3.8 inside python.exe.

How can I go about it? Is there an alternate way to install? Please help. Thank you

like image 717
Ashten Avatar asked Oct 28 '25 15:10

Ashten


1 Answers

You can download tensorflow1.X from https://pypi.org/

For example tensorflow1.15.0. Select the whl file corresponding to your system.

Then use pip install path/tensorflow-1.15.0-XXXX.whl or
conda install path/tensorflow-1.15.0-XXXX.whl to install.


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!