9

I'd like to update Keras to version 2.3.0 with conda. Currently, I've got Keras 2.2.4 running.

First, I tried

conda update keras

which didn't work. Then I tried

conda install -c conda-forge keras
conda install -c conda-forge/label/broken keras
conda install -c conda-forge/label/cf201901 keras 

as suggested by https://anaconda.org/conda-forge/keras. This also didn't update Keras.

Any ideas?

3 Answers 3

10
  1. keras is collected in both the official channel and the conda-forge channel. Both of the two packages on Anaconda Cloud are not built the keras team, which explains why the package is outdated.

  2. For the time being, 20191007, package keras 2.3.0 is available in the conda-forge channel, for Linux only.

enter image description here

Solution:

To get the keras 2.3.0 installed, make sure

  1. install keras from conda-forge channel
  2. you're installing it on Linux, otherwise the latest version you can get is 2.2.5

    conda upgrade -c conda-forge keras
    

If a "module is not found" error is thrown out, reinstall keras with --strict-channel-priority to make sure dependencies of keras are install from conda-forge as well.

conda install -c keras --strict-channel-priority
3
pip uninstall keras

then

pip install keras
2

Using conda in the command line, the command below would install keras 2.3.0.

conda install keras==2.3.0
1

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.