Noob question. Thanks for bearing with me.
I have Tensorflow 2.4.1 installed on my computer, but I need 2.4.0 version for compatibility with a specific project.
I tried the following without success:
conda install tensorflow==2.4.0
conda install -c conda-forge tensorflow==2.4.0
It does this for awhile until jupyter notebook tells me that it couldn't find what I need
Collecting package metadata (current_repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Collecting package metadata (repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
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 the existing python installation in your environment:
Specifications:
- tensorflow==2.4.0 -> python[version='3.6.*|3.7.*|3.8.*']
- tensorflow==2.4.0 -> python[version='>=3.6,<3.7.0a0|>=3.7,<3.8.0a0|>=3.8,<3.9.0a0']
Your python: python=3.9
If python is on the left-most side of the chain, that's the version you've asked for.
When python appears to the right, that indicates that the thing on the left is somehow
not available for the python version you are constrained to. Note that conda will not
change your python version to a different minor version unless you explicitly specify
that.
Please help.
CodePudding user response:
Create an environment based on tensorflow 2.4.0:
conda create --name tf_2.4.0 tensorflow=2.4.0
and then activate it:
conda activate tf_2.4.0
That will install all you need using tensorflow 2.4.0 as a deppency. For example, you should get python-3.8.12 !
CodePudding user response:
According to the tensorflow official site -
Tf 2.4 is not supported by python 3.9, so you need to install a different version of python preferable 3.8 inside conda, and only then you can install TF 2.4