Installing Keras

Hello Everybody,

I am having a lot of trouble installing keras on my tx2. I am running python 2.7.12, and when I run pip install keras, I get the following output:

Collecting keras
Using cached
Collecting scipy>=0.14 (from keras)
Using cached
Complete output from command python egg_info:
Traceback (most recent call last):
File “”, line 1, in
File “/tmp/pip-build-z4fTsk/scipy/”, line 31, in
raise RuntimeError(“Python version >= 3.5 required.”)
RuntimeError: Python version >= 3.5 required.


Command “python egg_info” failed with error code 1 in /tmp/pip-build-z4fTsk/scipy/

Any idea what the problem could be? I know keras should work on python 2 because ive installed it on my desktop, which runs the same version of python.


Could you try to install scipy-1.2.2.

sudo pip install scipy==1.2.2


Thanks for the reply. However, I did that, but I still get the same error.


May I know your environment.
I can install it with JetPack4.2 without issues.