Install Tensorflow 2.3.0 on Raspberry Pi 3 Models

 Tensorflow is designed by google which is an open-source library used primarily for deep learning applications. Although, it is also useful for complex numerical tasks and implementing traditional machine learning algorithms . So, if your raspberry pi project include object recognition/ detection or such applications then you may require installing tensorflow in raspberry pi. So, let's see the requirements for installing it on raspberry pi.

Requirements for tensorflow in raspberry pi

Python 3.7

Virtual environment setup

If you're running the current version of raspbian os (update January 28, 2022) you may find the 3.9 version of python installed on it. The tensorflow 2.3.0 is stable with python 3.7. Let's see how we can install it on raspberry pi.

Open up your raspberry pi terminal and run the following commands 

$ sudo apt-get update
$ sudo apt-get install build-essential tk-dev libncurses5-dev libncursesw5-dev libreadline6-dev libdb5.3-dev libgdbm-dev libsqlite3-dev libssl-dev libbz2-dev libexpat1-dev liblzma-dev zlib1g-dev libffi-dev


$ wget https://www.python.org/ftp/python/3.7.0/Python-3.7.0.tar.xz
$ tar xf Python-3.7.0.tar.xz
$ cd Python-3.7.0
$ ./configure
$ make
$ sudo make altinstall


virtualenv myEnv -p python3.7
source ~/myEnv/bin/activate
pip3.7 install https://github.com/lhelontra/tensorflow-on-arm/releases/download/v2.3.0/tensorflow-2.3.0-cp37-none-linux_aarch64.whl


https://github.com/lhelontra/tensorflow-on-arm/releases/download/v2.3.0/tensorflow-2.3.0-cp35-none-linux_aarch64.whl


কোন মন্তব্য নেই

Blogger দ্বারা পরিচালিত.