Here's an easy tutorial how to install Tensorflow on a Raspberry Pi
Subscribe to my channel :) https://www.youtube.com/samwestbytech...
I make Raspberry Pi tutorials
If you prefer reading, here's a blog post with the instructions: https://www.samwestby.com/tutorials/r...
MY CAMERA: https://amzn.to/3reaDlK
MY MICROPHONE: https://amzn.to/3fhunSN
MY LIGHTING: https://amzn.to/3dHll1i
FREE Amazon Prime: https://amzn.to/3ren80W
FREE Audible Plus: https://amzn.to/3xYzJsR
RASPBERRY PI 4: https://amzn.to/3BC4i9I
RASPBERRY PI PICO START KIT: https://amzn.to/3REvjis
RASPBERRY PI CAMERA V2: https://amzn.to/3QFp90c
ELECTRONICS COMPONENT STARTER KIT: https://amzn.to/3qB23xg
ASSORTED SENSOR KIT: https://amzn.to/3U7M7zV
USB SPEAKER: https://amzn.to/3La4foK
USB 1080P WEBCAM: https://amzn.to/3Lq0OL7
I may earn commission if you purchase from the links above
INSTRUCTIONS AND TIMESTAMPS:
0:00 Intro
0:09 1. Find your .whl file
Check architecture: uname -m
Check OS: cat /etc/os-release
sudo apt update
sudo apt full-upgrade
Check python version: python -V
Check available .whl's here https://github.com/PINTO0309/Tensorfl...
Be sure to match your python version and architecture
**Use pyenv if you need a different python version - LINK TO PYENV TUTORIAL: • Install Multiple Python Versions on R...
2:45 2. Make your project directory:
cd Desktop
mkdir project
cd project
3:00 3. Make a virtual environment:
python3 -m pip install virtualenv
python3 -m virtualenv env
source env/bin/activate
3:34 4. Run the commands from https://github.com/PINTO0309/Tensorfl...
sudo apt-get install -y libhdf5-dev libc-ares-dev libeigen3-dev gcc gfortran libgfortran5 libatlas3-base libatlas-base-dev libopenblas-dev libopenblas-base libblas-dev liblapack-dev cython3 libatlas-base-dev openmpi-bin libopenmpi-dev python3-dev
pip install -U wheel mock six
3:58 5. Select the .whl from https://github.com/PINTO0309/Tensorfl...
Select "view raw" then copy the URL
Run:
wget [Raw file URL]
sudo chmod +x [Raw file URL]
./[Tensorflow file]
sudo pip uninstall tensorflow
pip uninstall tensorflow
pip install tensorflow-[Your version here].whl
6:00 6. Restart the shell
exec $SHELL
6:11 7. Reactivate your virtual environment:
cd Desktop
cd project
source env/bin/activate
6:24 8. Test:
python
import tensorflow
tensorflow.__version__
quit()
6:55 9. (optional) If there's an hdf5 warning run this command:
This is from: https://docs.h5py.org/en/stable/build...
pip uninstall h5py
HDF5_VERSION=[Desired version] pip install --no-binary=h5py h5py==3.1.0