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 https://files.pythonhosted.org/packages/5e/10/aa32dad071ce52b5502266b5c659451cfd6ffcbf14e6c8c4f16c0ff5aaab/Keras-2.2.4-py2.py3-none-any.whl
Collecting scipy>=0.14 (from keras)
Using cached https://files.pythonhosted.org/packages/cb/97/361c8c6ceb3eb765371a702ea873ff2fe112fa40073e7d2b8199db8eb56e/scipy-1.3.0.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File “”, line 1, in
File “/tmp/pip-build-z4fTsk/scipy/setup.py”, line 31, in
raise RuntimeError(“Python version >= 3.5 required.”)
RuntimeError: Python version >= 3.5 required.

----------------------------------------

Command “python setup.py 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.

Hi,

Could you try to install scipy-1.2.2.

sudo pip install scipy==1.2.2

Thanks.

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

Hi,

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

Thanks.