How to downgrade keras and tensorflow version on windows?

6.4k Views Asked by At

i'm trying to run a code which i found on the internet called FgSegNet, the code writer mention that he uses Python 3.6.3, Keras 2.0.6,and Tensorflow-gpu 1.1.0. and i'm using, anaconda3, python 3.5.5, keras 2.1.6,and tensorflow 1.8.0. on windows. i'm new with python and stuff, plz tell me, should I downgrade keras and tensorflow? and how? thanks in advance

1

There are 1 best solutions below

6
Surya Tej On

create a requirement.txt file with your required packages

Keras=2.0.6
tensorflow-gpu<=1.1.0

open an anaconda prompt

conda create -n NewEnv python=3.6.3

once the new environment is created , use pip to install dependencies

pip install -r <full path>/requirements.txt

Hope this helps