# How to install tensorflow on PYNQ Z2 board

**URL:** https://discuss.pynq.io/t/how-to-install-tensorflow-on-pynq-z2-board/4313
**Category:** Support
**Created:** [June 5, 2022, 10:52am UTC](https://discuss.pynq.io/t/how-to-install-tensorflow-on-pynq-z2-board/4313 "2022-06-05T10:52:54Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Satyashil\_Nagarale1](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.pynq.io/satyashil_nagarale1/32/3232_2.png) [@Satyashil\_Nagarale1](https://discuss.pynq.io/u/Satyashil_Nagarale1)
#### Post date: [June 5, 2022, 10:52am UTC](https://discuss.pynq.io/t/how-to-install-tensorflow-on-pynq-z2-board/4313/1 "2022-06-05T10:52:54Z")

</div>

Is it possible to install tensorflow on PYNQ Z2 board ?

There are so many problems with PYNQ board.

It is recommended not to use PYNQ board to implement Python code on FPGA.  
Very time consuming and irritating process.

---

<div class="post-metadata">

### Author: ![briansune](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.pynq.io/briansune/32/3087_2.png) [@briansune](https://discuss.pynq.io/u/briansune)
#### Post date: [June 5, 2022, 2:10pm UTC](https://discuss.pynq.io/t/how-to-install-tensorflow-on-pynq-z2-board/4313/2 "2022-06-05T14:10:05Z")

</div>

How to not install tensorflow on PYNQ Z2 board?  
Just don’t.  
How to install tensorflow on PYNQ Z2 board?  
Just download the ARM7l whl with Python3.7 and install.

It is recommended not to ask PYNQ question in PYNQ community.  
Very slow and sometime not helpful.

Enjoy~

---

<div class="post-metadata">

### Author: ![Satyashil\_Nagarale1](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.pynq.io/satyashil_nagarale1/32/3232_2.png) [@Satyashil\_Nagarale1](https://discuss.pynq.io/u/Satyashil_Nagarale1)
#### Post date: [June 6, 2022, 11:31am UTC](https://discuss.pynq.io/t/how-to-install-tensorflow-on-pynq-z2-board/4313/3 "2022-06-06T11:31:37Z")

</div>

> [@briansune](#):
>
> ARM7l whl with Python3.7

Thank You for replying

How to download and where to install?

---

<div class="post-metadata">

### Author: ![Satyashil\_Nagarale1](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.pynq.io/satyashil_nagarale1/32/3232_2.png) [@Satyashil\_Nagarale1](https://discuss.pynq.io/u/Satyashil_Nagarale1)
#### Post date: [June 6, 2022, 11:36am UTC](https://discuss.pynq.io/t/how-to-install-tensorflow-on-pynq-z2-board/4313/4 "2022-06-06T11:36:39Z")

</div>

> [@briansune](#):
>
> ARM7l whl with Python3.7

Thank You…

---

<div class="post-metadata">

### Author: ![Nagendra](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.pynq.io/nagendra/32/2653_2.png) [@Nagendra](https://discuss.pynq.io/u/Nagendra)
#### Post date: [June 10, 2022, 10:45am UTC](https://discuss.pynq.io/t/how-to-install-tensorflow-on-pynq-z2-board/4313/5 "2022-06-10T10:45:47Z")

</div>

Hi @Satyashil_Nagarale1

Please try this  
[https://tutorials.logictronix.com/our-resources/tutorials/pynq-fpga-tutorials/install-tensorflow-on-pynq/](https://tutorials.logictronix.com/our-resources/tutorials/pynq-fpga-tutorials/install-tensorflow-on-pynq/)

I have successfully installed tensorflow on a ZCU111 board using a PYNQ 2.7 image, but I am not sure about the PYNQ z2 boards.

**pip3 install tensorflow-aarch64**

---

<div class="post-metadata">

### Author: ![vlasov](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.pynq.io/vlasov/32/6368_2.png) [@vlasov](https://discuss.pynq.io/u/vlasov)
#### Post date: [October 14, 2024, 10:25pm UTC](https://discuss.pynq.io/t/how-to-install-tensorflow-on-pynq-z2-board/4313/6 "2024-10-14T22:25:51Z")

</div>

I was able to install it on Arty Z7 (7020) board using a PYNQ 3.0.1 image by adding some swap space as it was running out of memory.

sudo swapoff /swapfile  
sudo fallocate -l 16G /swapfile  
sudo mkswap /swapfile  
sudo chmod 0600 /swapfile  
sudo swapon /swapfile
