Keras and Tensorflow in PYNQ-Z2

I am using PYNQ-Z2, with latest image file. Here default python version is Python 3.6.

  1. I tried to install Tensorflow and keras but i cann’t able to do it.
  2. I tried using Dropbox - TensorFlow_Installation_on_PYNQ_Nov_6_2018.pdf - Simplify your life This tutorial to use pynq z1 with python 3.4 image in pynq z2 also, but cannt able to install tensorflow shows the error as need python>=3.6. But i cannt install tf in python 3.6 also.

Please, need help. Thanks in advance

Hi Sanjay, I am trying to install tensorflow to infer an existing model on PYNQ Z2.
Did you have any luck installing it? If you did, do help a brother out :smile:

I tried with the approch you did but it cant install that tensor flow.
Then i followed this repo:

this did install tensorflow but it gave be the following import error log.

xilinx@pynq:$ python3 --version
Python 3.6.5
xilinx@pynq:
$ python3
Python 3.6.5 (default, Apr 1 2018, 05:46:30)
[GCC 7.3.0] on linux
Type “help”, “copyright”, “credits” or “license” for more information.

import tensorflow
Traceback (most recent call last):
File “”, line 1, in
File “/usr/local/lib/python3.6/dist-packages/tensorflow/init.py”, line 101, in
from tensorflow_core import *
File “/usr/local/lib/python3.6/dist-packages/tensorflow_core/init.py”, line 40, in
from tensorflow.python.tools import module_util as _module_util
File “/usr/local/lib/python3.6/dist-packages/tensorflow/init.py”, line 50, in getattr
module = self._load()
File “/usr/local/lib/python3.6/dist-packages/tensorflow/init.py”, line 44, in _load
module = _importlib.import_module(self.name)
File “/usr/lib/python3.6/importlib/init.py”, line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File “/usr/local/lib/python3.6/dist-packages/tensorflow_core/python/init.py”, line 50, in
from tensorflow.python import _pywrap_utils
ImportError: /usr/local/lib/python3.6/dist-packages/tensorflow_core/python/_pywrap_utils.so: undefined symbol: PyThread_tss_alloc

Hi Sanjay, I am trying to install tensorflow to infer an existing model on PYNQ Z2.
Did you have any luck installing it?