alex-hh/eDICE

pip install requirements.txt failed with conda env python version 3.9.19

Opened this issue · 5 comments

ERROR: Ignored the following versions that require a different python version: 1.14.0 Requires-Python >=3.10; 1.14.0rc1 Requires-Python >=3.10; 1.14.0rc2 Requires-Python >=3.10
ERROR: Could not find a version that satisfies the requirement tensorflow==2.11.0 (from versions: 2.13.0rc0, 2.13.0rc1, 2.13.0rc2, 2.13.0, 2.13.1, 2.14.0rc0, 2.14.0rc1, 2.14.0, 2.14.1, 2.15.0rc0, 2.15.0rc1, 2.15.0, 2.15.1, 2.16.0rc0, 2.16.1, 2.16.2, 2.17.0rc0, 2.17.0rc1, 2.17.0)
ERROR: No matching distribution found for tensorflow==2.11.0

hi: as a first attempt to resolve this issue you could perhaps try with a more recent tensorflow version (e.g. 2.13.0) - I haven't tested this but would be surprised if there are major differences.

it should also be possible to find a way to install tensorflow 2.11.0 but I'm not sure of the best way to do this.

let me know if you have further problems/questions

I managed to update the tensorflow version to 2.17.0 and resolved conflicts of other packages.
requirements_pip_freeze.txt

looks like this may be due to upgrading to keras 3 . can you try downgrading to keras 2 by installing tensorflow<=2.15.0? https://keras.io/getting_started/#tensorflow--keras-2-backwards-compatibility

I managed to get the training script working using the sample_data with some tweaks.
Here is my setup:

  • Mac OS 14.5 M3 chip
  • Python 3.11.0
  • tensorflow==2.13.0
  • keras==2.13.1

There were two error msgs I encountered and fixed so it runs - not sure if it's to do with different package versions. Do you want me do a PR so you can review it?

you're welcome to open a PR! im not clear yet whether the modifications are necessary to get things running but happy to take a look at what you did and have available as an example in case it's useful to anyone else trying to run the code.