0

How can I install an old version of Tensorflow in conda vertual environnement? I want Tensorflow-gpu 1.4, when I attempt this command:

conda install tensorflow-gpu=1.4

I see the message in attached picture.

enter image description here

When I tried conda create -n tf_1_4 python=3.6 tensorflow-gpu=1.4 and I got this :

Collecting package metadata (current_repodata.json): done
Solving environment: failed with repodata from current_repodata.json, will retry with next repodata source.
Collecting package metadata (repodata.json): done
Solving environment: \
Found conflicts! Looking for incompatible packages.
This can take several minutes.  Press CTRL-C to abort.
failed

UnsatisfiableError: The following specifications were found to be incompatible with each other:

Output in format: Requested package -> Available versions

Package python conflicts for:
python=3.6
tensorflow-gpu=1.4 -> tensorflow-gpu-base==1.4.1 -> python[version='>=2.7,<2.8.0a0|>=3.5,<3.6.0a0|>=3.6,<3.7.0a0']

The following specifications were found to be incompatible with your system:

 - feature:/linux-64::__glibc==2.26=0
 - feature:|@/linux-64::__glibc==2.26=0

Your installed version is: 2.26
merv
  • 67,214
  • 13
  • 180
  • 245
rif3aa dev
  • 147
  • 10
  • 1
    maybe try it with Mamba - I find it gives more precision diagnostic feedback. https://stackoverflow.com/a/69137255/570918 – merv Dec 02 '21 at 18:22

1 Answers1

0

The error message states that Python must be either 2.7, 3.5, or 3.6, whereas the current environment is 3.7. Create a new environment:

conda create -n tf_1_4 python=3.6 tensorflow-gpu=1.4
merv
  • 67,214
  • 13
  • 180
  • 245
  • failed UnsatisfiableError: The following specifications were found to be incompatible with each other: Output in format: Requested package -> Available versions Package python conflicts for: python=3.6 tensorflow-gpu=1.4 -> tensorflow-gpu-base==1.4.1 -> python[version='>=2.7,<2.8.0a0|>=3.5,<3.6.0a0|>=3.6,<3.7.0a0']The following specifications were found to be incompatible with your system: feature:/linux-64::__glibc==2.26=0 feature:|@/linux-64::__glibc==2.26=0 Your installed version is: 2.26' – rif3aa dev Dec 01 '21 at 17:58
  • 1
    @rif3aadev try adding both conda-forge and the free channel `conda create -n tf_1_4 -c conda-forge -c free tensorflow-gpu=1.4 python=3.6` – FlyingTeller Dec 02 '21 at 08:26