Skip to content

Instantly share code, notes, and snippets.

@naviocean
Last active June 26, 2020 08:39
Show Gist options
  • Select an option

  • Save naviocean/0b19ba4e44ce64139f88e07d4d98a5c4 to your computer and use it in GitHub Desktop.

Select an option

Save naviocean/0b19ba4e44ce64139f88e07d4d98a5c4 to your computer and use it in GitHub Desktop.
Install Tensorflow 2 on Tinker Board (ARM)

Install Tensorflow 2 on Tinker Board

Following step by steps:

  1. Scipy:
sudo apt-get install python3-scipy python-scipy
  1. H5py:
sudo apt-get install python-h5py python3-h5py libhdf5-dev
  1. functools32-3.2.3:
  • Firt, download latest version from repo: https://pypi.org/project/functools32/#history
  • Untar tar -xvf functools32-3.2.3-2.tar.gz
  • Open setup.py and remove these lines:
    if not (3,) > sys.version_info >= (2, 7):
        sys.stderr.write('This backport is for Python 2.7 only.\n')
        sys.exit(1)
  • Install package: pip install -e functools32-3.2.3
  1. Setup TF2:
  • Download latest version from: https://github.com/lhelontra/tensorflow-on-arm
  • Install: pip install tensorflow-2.2.0-cp35-none-linux_armv7l.whl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment