How to update Keras?

22,802 views
Skip to first unread message

Martin H

unread,
Sep 28, 2015, 10:47:50 AM9/28/15
to Keras-users
I'm new to Theano / Keras. I've installed Keras last week via:
sudo pip install keras.

I have a similar issue as here: https://github.com/fchollet/keras/issues/90 and I read here that adding y_dim_components=2 to model.compile might be the solution. Doing so, I get

TypeError: compile() got an unexpected keyword argument 'y_dim_components'.

So my question is, how can I (manually) update Keras in order to get the latest version?


Thanks for your help!






François Chollet

unread,
Sep 28, 2015, 12:35:29 PM9/28/15
to Martin H, Keras-users
sudo pip install git+git://github.com/fchollet/keras.git --upgrade

--
You received this message because you are subscribed to the Google Groups "Keras-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to keras-users...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/keras-users/ae92247b-7115-4884-98db-ec5bbbf21dfd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

randhaw...@gmail.com

unread,
Jul 6, 2016, 2:36:44 PM7/6/16
to Keras-users, martin...@gmail.com
pip install git+git://github.com/fchollet/keras.git --upgrade --no-deps
no-deps is not recommended if underlying dependencies have changed

Poornachandra Sandur

unread,
Jun 24, 2017, 11:43:48 PM6/24/17
to Keras-users, martin...@gmail.com



I am getting the following error while updating

File "build/bdist.linux-x86_64/egg/pkg_resources/__init__.py", line 2909, in __contains__

  File "build/bdist.linux-x86_64/egg/pkg_resources/_vendor/packaging/specifiers.py", line 703, in contains

  File "build/bdist.linux-x86_64/egg/pkg_resources/_vendor/packaging/version.py", line 31, in parse

  File "build/bdist.linux-x86_64/egg/pkg_resources/_vendor/packaging/version.py", line 230, in __init__

  File "build/bdist.linux-x86_64/egg/pkg_resources/_vendor/packaging/version.py", line 353, in _cmpkey

RuntimeError: maximum recursion depth exceeded

----------------------------------------
Cleaning up...
Command python setup.py egg_info failed with error code 1 in /tmp/pip-VO7h3O-build
Storing debug log for failure in /home/poornachandra/.pip/pip.log
 
Reply all
Reply to author
Forward
0 new messages