# Installing Keras on PYNQ

**URL:** <https://discuss.pynq.io/t/installing-keras-on-pynq/340>\
**Category:** Support\
**Created:** [July 23, 2019, 6:37am UTC](https://discuss.pynq.io/t/installing-keras-on-pynq/340 "2019-07-23T06:37:04Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![harshada25](https://avatars.discourse-cdn.com/v4/letter/h/f04885/32.png) [@harshada25](https://discuss.pynq.io/u/harshada25)\
**Post date:** [July 23, 2019, 6:37am UTC](https://discuss.pynq.io/t/installing-keras-on-pynq/340/1 "2019-07-23T06:37:04Z")

</div>

I want to build a Neural Network project on PYNQ-Z1 board. Need help installing Keras package for that.  
Is there a specific set of commands for that?

---

<div class="post-metadata">

**Author:** ![cathalmccabe](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.pynq.io/cathalmccabe/32/3348_2.png) [@cathalmccabe](https://discuss.pynq.io/u/cathalmccabe)\
**Post date:** [July 23, 2019, 7:21am UTC](https://discuss.pynq.io/t/installing-keras-on-pynq/340/2 "2019-07-23T07:21:16Z")

</div>

Did you try this?

> **[Keras: the Python deep learning API](https://keras.io/#installation)**
>
> Keras documentation

Cathal

---

<div class="post-metadata">

**Author:** ![harshada25](https://avatars.discourse-cdn.com/v4/letter/h/f04885/32.png) [@harshada25](https://discuss.pynq.io/u/harshada25)\
**Post date:** [July 23, 2019, 7:26am UTC](https://discuss.pynq.io/t/installing-keras-on-pynq/340/3 "2019-07-23T07:26:09Z")

</div>

I tried pip3 install Keras, but it was getting stuck on Building wheel for SciPy.

---

<div class="post-metadata">

**Author:** ![cathalmccabe](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.pynq.io/cathalmccabe/32/3348_2.png) [@cathalmccabe](https://discuss.pynq.io/u/cathalmccabe)\
**Post date:** [July 23, 2019, 7:29am UTC](https://discuss.pynq.io/t/installing-keras-on-pynq/340/4 "2019-07-23T07:29:51Z")

</div>

If you expect someone to help, you should try to provide as much information as you can about your setup, the problem, what you have already tried, details about the problem(s) you encountered and any other relevant info.

Cathal

---

<div class="post-metadata">

**Author:** ![harshada25](https://avatars.discourse-cdn.com/v4/letter/h/f04885/32.png) [@harshada25](https://discuss.pynq.io/u/harshada25)\
**Post date:** [July 23, 2019, 7:41am UTC](https://discuss.pynq.io/t/installing-keras-on-pynq/340/5 "2019-07-23T07:41:59Z")

</div>

Yes I understand it.  
I tried pip3 install Keras and it started collecting the packages for scipy, pyyaml and h5py. However, after running for 1 and a half hours or so, it got stuck on building SciPy.

---

<div class="post-metadata">

**Author:** ![rock](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.pynq.io/rock/32/32_2.png) [@rock](https://discuss.pynq.io/u/rock)\
**Post date:** [July 26, 2019, 12:25am UTC](https://discuss.pynq.io/t/installing-keras-on-pynq/340/6 "2019-07-26T00:25:47Z")

</div>

Some of the packages may be too large to install on arm system. You’d better look for a working case on an arm processor first (like if anyone succeed in installing those packages on raspberry pi, etc.).

There might be someone who tried this before on z1 but I can hardly remember.
