How to update Keras with conda
pip uninstall keras
then
pip install keras
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.For the time being, 20191007, package
keras
2.3.0 is available in the conda-forge channel, for Linux only.
Solution:
To get the keras
2.3.0 installed, make sure
- install
keras
fromconda-forge
channel 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