How to Install TensorFlow 2 and OpenCV on a Raspberry Pi

Поділитися
Вставка
  • Опубліковано 3 гру 2024

КОМЕНТАРІ • 190

  • @timothyhassett9342
    @timothyhassett9342 2 роки тому +2

    I tried for 3 days straight - 12 hours a day - then found your videos and got it working in the time of the video - approx 20 mins. Thank you so much.
    Also your hell handsome

  • @steveconway5972
    @steveconway5972 11 місяців тому +1

    Excellent video I have looked at other videos and they always say, "go do something" and presume you know how to. This video has every single step explained in detail and is really easy to follow.
    Thank You Sam for taking the time to make this video - much appreciated!

  • @timdarrah2677
    @timdarrah2677 2 роки тому +21

    Great video. FYI - ensure you (the audience) ``` pip install protobuf==3.20.* ``` before installing the tensorflow wheel if using tf=2.8+py=3.9 on 64bit Bullseye (aarch64). This may be true for other combinations as well (untested). This wasn't needed in the original video but due to updates over the last 6 months is now necessary.

    • @adrianric3021
      @adrianric3021 2 роки тому

      thanks you bro

    • @shreyasbharadwaj4654
      @shreyasbharadwaj4654 2 роки тому

      thank you so much boss

    • @roybran2
      @roybran2 2 роки тому

      This was huge. thanks for adding this step

    • @sharks203
      @sharks203 Рік тому

      i am using raspberrypi 3b+ python3 -V = "3.7.*" AND uname -m = "armv7l" and python3 -m pip install tensorflow-2.5.0-cp37-none-linux_armv7l.whl it frezed in "Building wheel for grpcio (setup.py) " what to do??

    • @jethlacuesta7298
      @jethlacuesta7298 Рік тому

      Thank you sir. I had to uninstall protobuf 4.23.4 first then install your mentioned version. 👍

  • @ufombrille
    @ufombrille 2 роки тому +5

    Thank you very much!! I couldn't install tensorflow on my Pi 4, I needed to do this pip3 install --upgrade protobuf==3.20.0, since he asked me for these 2 things:
    1-Downgrade the protobuf package to 3.20.x or lower.
    2. Set PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python (but this will use pure-Python parsing and will be much slower).

    • @adamgulamhusein8768
      @adamgulamhusein8768 2 роки тому +8

      Hey thank you for this. I work in a lab at a hospital and this is a part of a project I'm working on. For others who may experience the same issue: I used pip uninstall protobuf; pip install protobuf==3.9.2

    • @suheladesilva2933
      @suheladesilva2933 9 місяців тому

      Thank you so much for mentioning this@@adamgulamhusein8768

  • @Salehalanazi-7
    @Salehalanazi-7 2 роки тому +2

    Dude is basically a legend

  • @francisluna6577
    @francisluna6577 4 місяці тому +2

    Why there is an error "Note selecting 'libhdf5-dev' instead of 'libhdf5-serial-dev'
    E: Unable to locate package libopenblas-base
    is there a way to solve this I can't input the additional libraries

  • @mahmoudaldidamoni
    @mahmoudaldidamoni 2 роки тому +2

    I learned a lot, thanks for the great tutorial, I wish everyone explains in such beautiful way

  • @RogerLin-r5x
    @RogerLin-r5x Рік тому +4

    Hi, I followed the tutorial and made sure the version are identical, however I recieved an tensorflow.whl is not a supported wheel on this platform.

    • @suheladesilva2933
      @suheladesilva2933 9 місяців тому

      Got the same issue, any ideas on how to resolve it?

    • @suheladesilva2933
      @suheladesilva2933 9 місяців тому +1

      Hi, got it resolved. So I was using python 3.11 and when I downgraded it to 3.9.2 the issue was resolved. But I started from scratch (ie. from the start of the code of this video). I think the issue may be that tensorflow is incompatible with some of the recent python versions (not really sure about this though). Anyway, got the issue solved. Hope it helps someone.

  • @DineshOsti-mu8lp
    @DineshOsti-mu8lp Рік тому

    You are great. You taught good. YOU DESERVE MORE.
    Thank You.

  • @minhchaunguyen7336
    @minhchaunguyen7336 2 роки тому

    This is a good tutorial, it helped me very much. I fixed the error about can't install Tensorflow on Python 3.7. Thank you very much!

  • @harikrishnasamy1551
    @harikrishnasamy1551 2 роки тому

    I'm working on tensorflow this really helpful keep doing your work on raspi and make videos related to errors in raspi

    • @SamWestbyTech
      @SamWestbyTech  2 роки тому

      Got any errors in particular that you would like a video about?

  • @sebastiaandenhertog1716
    @sebastiaandenhertog1716 2 роки тому +2

    Hi sadly i still get the not a supported wheel for this platform I have a 64bit system and I tried to install it for 3.8

  • @alouanibakir9451
    @alouanibakir9451 Рік тому +5

    Hi
    Excellent job
    But I have a problem
    Error: tensorflow-2.8.0-cp39-none-lunix_aarch64.whl is not supported wheel on this platform
    If you can help me
    I have raspberry pi 4 (2ram)

  • @BigGetit1
    @BigGetit1 2 роки тому

    This was so helpful, can't thank you enough, perfect video!!!

  • @issamelimrany
    @issamelimrany Рік тому

    Excellent explanation, clear and to the point.

  • @amandak1396
    @amandak1396 9 місяців тому

    Following your tutorial I have been very successful getting all of this to work. And have even trained a YOLOv5 model for image detection. I am having trouble with converting that best.pt file to a keras model because I cannot find a tensorflow-addons that works with this. Can you recommend a workaround.

  • @jmvaleriano8839
    @jmvaleriano8839 Рік тому +1

    Error: .whl is not a supported wheel on this platform pls help

  • @hossamsamir1141
    @hossamsamir1141 2 роки тому

    first I want to thank you for this clear information ,you are doing well .
    second, How could I install tensorflow on raspian as a virtual machine?

  • @uwelorenz4516
    @uwelorenz4516 Рік тому +2

    ein erstklassiges Video !! 👍

  • @dawood7708
    @dawood7708 Рік тому

    Jazak Allah kher , may God bless you insha Allah!!

  • @kevinangers
    @kevinangers 2 роки тому

    This was insanely helpful, thanks alot

  • @SportsVisionbyDrLaby
    @SportsVisionbyDrLaby 2 роки тому

    Excellent job! Was able to follow and get everything set up - even a s a relative Newbie to RP Thanks ...

  • @manuelcarriedo4404
    @manuelcarriedo4404 Рік тому

    great video Sam. Thanks for sharing.

  • @Giggle_Wiggle_
    @Giggle_Wiggle_ 4 місяці тому

    This method worked for me. Thanks a ton :-)

  • @Kaeldrom
    @Kaeldrom 10 місяців тому

    I have an RPi5 with Raspbian Bookworm. I followed this guide and get ‘wheel not supported’
    Any ideas? Does this work yet on a Pi5?

  • @cuongduongbinh4036
    @cuongduongbinh4036 Рік тому

    wonderful, this is exactly what I need !! thank you

  • @deepenshrestha5869
    @deepenshrestha5869 Рік тому

    it was really helpful. Thank you so much

  • @stahelpeter
    @stahelpeter 2 роки тому

    Great video and very well explained. Thank you very much

  • @realpotiny
    @realpotiny 2 роки тому

    This was so helpful. Thanks alot!!

  • @yogastenhie33
    @yogastenhie33 11 місяців тому

    Im kinda new to this and I went through with python 3.11 even tho tensorflow doesn't show a supported version tryed other tutorials but couldn't get it to work i really needed to downgrade with a version that is compatiblewith the tensorflow models

  • @louaytrabelsi2401
    @louaytrabelsi2401 Рік тому

    this was really helpful
    thank you

  • @kanade4058
    @kanade4058 Рік тому

    Thanks for great video sir. i currently have a project for my exam and this is help me. so far i dont have any trouble at all. but when i come to use import tensorflow.. it gave me h5py problem. from the description you suggest to install specific HDF5_Version = [Desired Version] which is confused me which one is suitable for my instalation. the UserWarning said that 'h5py is running against HDF5 1.10.6 when it was built against 1.10.4'. and i have still no ideas how to fix this. thanks for any reply.

  • @baconsky1625
    @baconsky1625 2 роки тому +1

    Could you perhaps make a tutorial about how to install picamera2? Or make any way of making images with you latests operating system version perhaps? The latest version of the operating system has some issues with the camera library. Much appreciated :D

    • @SamWestbyTech
      @SamWestbyTech  2 роки тому +1

      I do not have a picamera but I will look into it if I get one

  • @falabaguete785
    @falabaguete785 2 роки тому

    Thanks for the tutorial, it helped me a lot! But thank you especially for the clear way in which you explain

  • @sahilsaxena5023
    @sahilsaxena5023 Рік тому +1

    getting error : not a supported wheel on this platform

  • @newsonsports7457
    @newsonsports7457 2 роки тому

    Nice tutorial..it's really helpful for install opencv & tensorflow

  • @carljohnjaojao8848
    @carljohnjaojao8848 2 роки тому

    thank you so much, sir. This video really helped me

  • @nathan-pl5yd
    @nathan-pl5yd 2 роки тому +1

    I was wondering if you could do a video on object detection using openCV that runs smoothly at 20 frames or more

    • @SamWestbyTech
      @SamWestbyTech  2 роки тому +1

      I can look into it. This will probably be doable if the pixels are small enough

    • @nathan-pl5yd
      @nathan-pl5yd 2 роки тому

      @@SamWestbyTech Thank you

  • @KAZITASNUVAALVI
    @KAZITASNUVAALVI 2 роки тому +1

    getting this error " /bin/bash: ./download_tensorflow-2.5.0-cp37-none-linux_armv7l_numpy1195.sh: Permission denied"

  • @ajitbjoseph
    @ajitbjoseph Рік тому

    Hey Sam, Awesome content. I have a request - how can we stream a video from raspberry pi to a Mac/windows browser with face/eye detection running on the pi

  • @franciscovelasquezferrada1165
    @franciscovelasquezferrada1165 2 роки тому

    Hello, i really enjoyed this tutorial, most of all that you are using last version of all packages and that's awesome. Have you tried deepsort on a raspberry with the picamera?? Thank you !!

  • @johnhonaker2926
    @johnhonaker2926 2 роки тому

    Great video! Was wondering if the Tensorflow process would work on the Jetson Nano also?

    • @SamWestbyTech
      @SamWestbyTech  2 роки тому

      I haven’t used the Jetson Nano but I think this process should work. It’s 64-bit and supports aarch64 (you can verify with uname -m). Especially since the Jetsen OS is based on Ubuntu

  • @lllLockonXstratoslll
    @lllLockonXstratoslll 2 роки тому

    well presented well documented video, thank yu

  • @cosmindb9575
    @cosmindb9575 2 роки тому +1

    Thanks for the tutorial. I am stuck at point "python3 -m pip install tensorflow-[Your version here].whl". When i run this command, the installation stops at " Building wheel for grpcio". The RPi become very slow and i can't do anything. I'm using RPi 3B Python 3.9.2 aarch64.
    UPDATE: I have just used the shell file with tf 2.8 python 3.9, aarch64 and np1221 and it works.

    • @anfelsebai5428
      @anfelsebai5428 6 місяців тому

      same problème how did you solve it?

  • @mohammedalnaimi3286
    @mohammedalnaimi3286 2 роки тому

    thank you so much you almost covered everything 😁

  • @AagaashKr-h2x
    @AagaashKr-h2x 11 місяців тому

    Hey sam im installing tensorflow as per your instruction and I'm facing an error stating " ERROR: Could not build wheels for h5py, which is required to install pyproject.toml-based projects" while running the command HDF5_VERSION=1.10.6 pip install --no-binary=h5py h5py==3.1.0 could you please help me rectify it?

  • @aymenkerr4139
    @aymenkerr4139 2 роки тому

    thank u for the tutorial ur the best , btw my camera pi v 1.2 doesn't work in my os 64bit any solution ?
    and i must use os 64 bit cuz i use pytorch in my classification and pytorch exist only in 64 bit

  • @danyalcodes
    @danyalcodes Рік тому

    Thanks brother. Really helpful

  • @avivkarbassi7837
    @avivkarbassi7837 2 роки тому +1

    Hey man you are really helpful and I appreciate you. I was wondering if you could make a video of installation of opencv tensorFlow and mediapipe because I have followed your instructions for tensorFlow and opencv in 64 bit and its not working with mediapipe,and when I downgrade python to 3.7.12 with 32 bit i have the same problem as mentioned above. Thank you so much sir for your time.

    • @SamWestbyTech
      @SamWestbyTech  2 роки тому

      I’ll look into it!

    • @avivkarbassi7837
      @avivkarbassi7837 2 роки тому

      Thank you so much !!! I’m so glad I have the right to learn from you! I’m really appreciate you. It’s for my final project and im really really stuck in the raspberry pi step. Dont know what to do. My code uses opencv tensorFlow and mediapipe and i don’t succeeded running it on my raspberry for 2 months!!!! Really need your help.. (3.9.2 64bit os)

    • @shashanksharma6239
      @shashanksharma6239 2 роки тому

      @@avivkarbassi7837 hi did you solve this issue?

  • @KurganX2
    @KurganX2 2 місяці тому

    Nice Video, thank you so much

  • @Mr.Rorschakh
    @Mr.Rorschakh 2 роки тому

    can you make vedio for raspberry pi 0w open cv, mediapipe and rpi-gpio

  • @shovalyaakov0
    @shovalyaakov0 Рік тому

    14:27 when I run the command "python3 " and then import tensorflow as tf i get the message :
    Traceback (most recent call last):
    File "", line 1, in
    File "/home/st2023/env/lib/python3.9/site-packages/tensorflow/_init_.py", line 37, in
    from tensorflow.python.tools import module_util as _module_util
    File "/home/st2023/env/lib/python3.9/site-packages/tensorflow/python/_init_.py", line 37, in
    from tensorflow.python.eager import context
    File "/home/st2023/env/lib/python3.9/site-packages/tensorflow/python/eager/context.py", line 29, in
    from tensorflow.core.framework import function_pb2
    File "/home/st2023/env/lib/python3.9/site-packages/tensorflow/core/framework/function_pb2.py", line 16, in
    from tensorflow.core.framework import attr_value_pb2 as tensorflow_dot_core_dot_framework_dot_attr_value_pb2
    File "/home/st2023/env/lib/python3.9/site-packages/tensorflow/core/framework/attr_value_pb2.py", line 16, in
    from tensorflow.core.framework import tensor_pb2 as tensorflow_dot_core_dot_framework_dot_tensor__pb2
    File "/home/st2023/env/lib/python3.9/site-packages/tensorflow/core/framework/tensor_pb2.py", line 16, in
    from tensorflow.core.framework import resource_handle_pb2 as tensorflow_dot_core_dot_framework_dot_resource_handle_pb2
    File "/home/st2023/env/lib/python3.9/site-packages/tensorflow/core/framework/resource_handle_pb2.py", line 16, in
    from tensorflow.core.framework import tensor_shape_pb2 as tensorflow_dot_core_dot_framework_dot_tensor_shape_pb2
    File "/home/st2023/env/lib/python3.9/site-packages/tensorflow/core/framework/tensor_shape_pb2.py", line 36, in
    _descriptor.FieldDescriptor(
    File "/home/st2023/env/lib/python3.9/site-packages/google/protobuf/descriptor.py", line 561, in _new_
    _message.Message._CheckCalledFromGeneratedFile()
    TypeError: Descriptors cannot not be created directly.
    If this call came from a _pb2.py file, your generated code is out of date and must be regenerated with protoc >= 3.19.0.
    If you cannot immediately regenerate your protos, some other possible workarounds are:
    1. Downgrade the protobuf package to 3.20.x or lower.
    2. Set PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python (but this will use pure-Python parsing and will be much slower).
    plss help

  • @ricardovazquez4333
    @ricardovazquez4333 Рік тому

    why do we need the virtual environment for?

  • @ernobenko7168
    @ernobenko7168 11 місяців тому

    Thank you for the vide it is very clear and silmple with good explanation. Yet i have some issues i'd like to as for some help.
    my priority in installing is that i want openCV first installed, then TF is just secondary. Yet i am unable to install CV2, it gave me an error message, after it i started troubleshooting and found some interesting outcomes.
    i have pi model 3 B 32 bit (difficult one)
    python version is 3.9.2
    but managed the special environment issue, where i have 3.7.17 installed.
    the interestin phenomena i occured is that starting up a python shell and importing numpy simply does not work. out of the shell if i want to install, it says already installed (even within or out of the virt env) yet whenever entering a python shell, gives a message that no such package as numpy. I think this one can be a begening of my error. Any idea?
    Thank you all in advance

  • @hasrat17
    @hasrat17 2 роки тому +2

    when installing tensorflow it says BadZipFile: file is not a zip file

    • @kvakash8912
      @kvakash8912 7 місяців тому +1

      which file did u use

    • @hasrat17
      @hasrat17 7 місяців тому

      @@kvakash8912 Thanks for reply but its a bit late I completed that project 1 year ago 😅

    • @kvakash8912
      @kvakash8912 7 місяців тому

      @@hasrat17 oo okay
      I'm now stuck here 🥲
      Any idea bout this badzipfile

  • @kvakash8912
    @kvakash8912 7 місяців тому

    I am getting this error
    zipfile.BadZipFile: File is not a zip file
    while installing the wheel file

  • @furkanbaydar5706
    @furkanbaydar5706 10 місяців тому

    Great video! But i got an error when i install the whl file. It says wheel is invalid. Do you have any idea?

    • @Kaeldrom
      @Kaeldrom 10 місяців тому

      You got a RPi 5?

  • @saiots8651
    @saiots8651 2 роки тому

    please make a video to install tensoflow and opencv without virtual environment in RPi 3

  • @harikrishnasamy1551
    @harikrishnasamy1551 2 роки тому

    how to reinstall tensorflow......if i do uninstall all packages are left in python/sitepackages how to remove all those and install newly
    Update: now I have installed TensorFlow successfully by following your steps(before some supporting packages were not installed)

  • @sarveshrodi33
    @sarveshrodi33 Рік тому

    When I run script on thonny python it shows no module tensor flow... How to import tensor flow without env or how to run env on reeboot

  • @harikrishnasamy1551
    @harikrishnasamy1551 2 роки тому

    After installing TensorFlow I have tried to import it in a python environment and that returns this error......ImportError: cannot import name 'minidom' from 'xml.dom' (unknown location)

  • @redshepard5306
    @redshepard5306 2 роки тому

    python3 -m pip install -U wheel mock six
    what does this command do and do we need it? its in the description but you skipped it in the video.
    thanks for everything, your videos are top quality

    • @SamWestbyTech
      @SamWestbyTech  2 роки тому

      Some people were having errors so I included this command. It's not needed in most cases.
      -U: upgrade the package if it's already installed
      wheel: a tool to work with .whl files
      mock: a library for testing
      six: a Python 2 to 3 compatibility library

  • @nature-tr6sg
    @nature-tr6sg 2 роки тому +1

    thank you

  • @MAlImranBinSalim
    @MAlImranBinSalim 2 роки тому

    Hi. I got error when install the tensorflow, I'm downloading tensorflow 2.0.0 64bit but when i use the pip install with whl file the output is error invalid whl file
    I'm using pyenv python 3.7.6
    Raspberry pi 4b
    Helppppppp.....!!!!!

  • @roybran2
    @roybran2 2 роки тому +1

    Thanks for a great tutorial. Subscribe and Liked :)

  • @md.shakibuddin2740
    @md.shakibuddin2740 2 роки тому

    I successfully installed tansorflow & opencv in raspberry pi 3b exactly show in tutorial & it work perfectly but after next day when import cv2 or import tansorflow it show bash command not found

    • @SamWestbyTech
      @SamWestbyTech  2 роки тому

      Don't forget to reactivate your virtual environment

  • @nagarajanramamurthi9751
    @nagarajanramamurthi9751 10 місяців тому

    failed - import tensorflow as tf (error: TypeError: Descriptors cannot be created directly.
    If this call came from a _pb2.py file, your generated code is out of date and must be regenerated with protoc >= 3.19.0.
    If you cannot immediately regenerate your protos, some other possible workarounds are:
    1. Downgrade the protobuf package to 3.20.x or lower.
    2. Set PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python (but this will use pure-Python parsing and will be much slower).

  • @khalfaouimedamine2940
    @khalfaouimedamine2940 Рік тому

    thank you so mush it was so helpfull

  • @junjielim6734
    @junjielim6734 2 роки тому

    Fyi, I still failed to install tf2.5 with numpy==1.19.5, raspbian 64 bit bullseye, python3.9 , aarch64 even though I am using the correct whl file. The error ERROR: No matching distribution found for tensorflow-2.5.0-cp39-none-linux_aarch64_numpy1195.sh still happens, may I know how to fix it?

    • @Gaurav-t8m
      @Gaurav-t8m 8 місяців тому

      same here, did you find any solution?

  • @neilangelobellen7635
    @neilangelobellen7635 2 роки тому

    Hii im having errors on importing the cv2. It always shows "ImportError: numpy.core.multiarray failed to import"

    • @SamWestbyTech
      @SamWestbyTech  2 роки тому

      Try `pip install --upgrade numpy`. I'm guessing you have an old version of numpy

  • @farisalafndi1331
    @farisalafndi1331 2 роки тому

    hi could you help me installing opencv and the latest version of mediapipe I have been trying but I could not

    • @SamWestbyTech
      @SamWestbyTech  2 роки тому

      I’ll add things with mediapipe to my list

  • @sandilyatata2975
    @sandilyatata2975 Рік тому

    When I'm trying to install opencv and while importing it is showing numpy.core.multiarray import error 🥺 can anyone solve this i have to complete my project

  • @jayantimmanuelkotie4148
    @jayantimmanuelkotie4148 2 роки тому +1

    Thanks for the video. I have an issue with tensorflow library. Basically I wanted to run both opencv and tensorflow for the same python code but the issue is that I have a code which requires tensorflow 1.14.0 as it has tensorflow.contrib command and similar old commands which work only with 1.14.0. I tried to edit and update my code but it has many commands and it is tedious so I followed this video and downgraded python to 3.7.4 (as I ran the same code with this version in windows and I had tensorflow lib installed too). For the sh file I chose
    `download_tensorflow-1.14.0-cp37-cp37m-linux_aarch64.sh`
    as I have RP os 64 bit and RP 4, 4 gb ram same as that used in video. So after following this command
    `python3 -m pip install tensorflow-[Your version here].whl`
    I got the error Unable to find the required version of tensorflow just the same error when I try to install tf lib directly through command `pip install tensorflow` in python 3.9.2.
    So how do I solve this issue?
    Please guide me
    Please note: I came to know about tensorflow.contrib issue when I ran the code on tf 2.8 version in python 3.9.2 as done in this video.

    • @SamWestbyTech
      @SamWestbyTech  2 роки тому

      This command `python3 -m pip install tensorflow-1.14.0.whl` is important because it doesn't use the pip library. In your files, (type "ls" into the terminal) there should be a file called tensorflow-1.14.0.whl. If that is there, your installation should give a different error than the one you mentioned

    • @ufombrille
      @ufombrille 2 роки тому

      Try This.. couldn't install tensorflow on my Pi 4, I needed to do this pip3 install --upgrade protobuf==3.20.0, since he asked me for these 2 things:
      1-Downgrade the protobuf package to 3.20.x or lower.
      2. Set PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python (but this will use pure-Python parsing and will be much slower).

  • @muhammetozturk3327
    @muhammetozturk3327 2 роки тому

    thank you man

  • @EmrysSniper
    @EmrysSniper 2 роки тому

    Hello, please I am getting an error when i import tensorflow as tf. something like Tradeback (most recent call last): file "", line 1, in and so on. I have raspberry pi 4 64 OS bit with python 3.9 version aarch64

  • @Ducerobot
    @Ducerobot Рік тому

    Well its back to the jetson nano.❤

  • @DukeDamaz
    @DukeDamaz 7 місяців тому

    i keep getting stuck at the building wheel for h5py and it just doesnt load. no error no nothing just keeps loading and doesnt go anywhere from there. please help

    • @gxdx697
      @gxdx697 6 місяців тому +1

      hello did you solve this problem?

    • @DukeDamaz
      @DukeDamaz 6 місяців тому

      @@gxdx697 i directly installed tensorflow lite using sudo apt get instead of using a wheel file and it worked

  • @박도윤-r2f
    @박도윤-r2f 2 роки тому

    Thank you so much!!! U R HERO 👍

  • @kevansx1000
    @kevansx1000 2 роки тому

    Was getting "TypeError: Descriptors cannot not be created directly." Error when importing tensorflow. Needed to downgrade protobuf with this command. pip install --upgrade "protobuf

    • @tharindumadhuranga8340
      @tharindumadhuranga8340 2 роки тому +1

      Sometimes the protobuf package might be installed without your involvement. For this, you have two solutions to apply. Try one of the below solutions and it should work.
      Solution 01:-
      You can downgrade the protobuf plugin,
      pip install protobuf==3.20.*
      or you can add it to the requirements.txt file as the last package. Because this will override the previously installed protobuf package.
      ...
      protobuf==3.20.*
      Solution 02:-
      You can set the following environment variable.
      export PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python

  • @ardaucar9006
    @ardaucar9006 10 місяців тому

    For those that could not get it working:
    try:
    sudo apt update
    sudo apt upgrade
    sudo apt install -y libhdf5-dev libc-ares-dev libeigen3-dev
    sudo apt install -y python3-pip
    pip3 install tensorflow
    can also add specific version by:
    pip3 install tensorflow==2.5.0
    then:
    python3
    import tensorflow as tf
    print(tf.__version__)
    quit()

  • @eartharcher8369
    @eartharcher8369 Рік тому

    I got an error on " import tensorflow as tf"
    >>>UserWarning: h5py is running against HDF5 1.10.6 when it was built against 1.10.4, this may cause problems
    '{0}.{1}.{2}'.format(*version.hdf5_built_version_tuple)

  • @jaysonpaspe6113
    @jaysonpaspe6113 2 роки тому

    hi can you do steps on how to install PyQt5 in raspi 3b+ 64bit debian 11? thankyou

  • @siddharamdivate9710
    @siddharamdivate9710 2 роки тому

    Hey, I followed your steps and installed python 3.7.12 along with opencv-python , i can access the opencv from the terminal but not in thonny python. Why is that ?

    • @SamWestbyTech
      @SamWestbyTech  2 роки тому +1

      You won’t be able to access this in thonny. You can write the scripts in python, but you have to run the script in the terminal. Changing python versions with pyenv does not change python versions in thonny

    • @siddharamdivate9710
      @siddharamdivate9710 2 роки тому

      @@SamWestbyTech so, how can we access opencv from thonny ide ?

  • @aymeneabdelillahkerrouche3251
    @aymeneabdelillahkerrouche3251 2 роки тому

    hi ,
    can u do a video of plant disease detection with raspberry pi with VIT thank you
    awesome video

  • @kevindwi7757
    @kevindwi7757 2 роки тому

    When i install pip install tensorflow-2.5.0….. i got error wheel is invalid, why this is happen?

  • @jomarialano8941
    @jomarialano8941 2 роки тому

    Hello sir. I want install tensorflow lite but I install raspberry pi desktop(x86_64) version on virtual Box. Is there's any way to download tflite?

    • @SamWestbyTech
      @SamWestbyTech  2 роки тому

      I haven’t used virtual box. Do you get stuck at a certain point in the tutorial?

    • @Eckxter
      @Eckxter 2 роки тому

      @@SamWestbyTech I believe I am in the same situation, so I think he's getting stuck at 3:34. I am also running a virtual Pi in VirtualBox and the command "uname -m" is giving me "x86_64". So I don't really know which .sh script to pick.

  • @dungphantan792
    @dungphantan792 2 роки тому

    What version of Raspberry are you using?

  • @sarthakdas6059
    @sarthakdas6059 Рік тому

    15:45 open cv

  • @mithi4377
    @mithi4377 Рік тому

    Github raw file is not opening what to do??

  • @Dr.AhmedQusaySabri
    @Dr.AhmedQusaySabri 2 роки тому

    Thanks a lot

  • @mvisnjic
    @mvisnjic 2 роки тому

    I tried to install tensorflow, and keep getting an error in pyenv.
    Then, I installed the raspian 64-bit and fix the problem.

  • @avivkarbassi7837
    @avivkarbassi7837 2 роки тому

    Hi sir, I manage to change from 3.9.2 to 3.7.12, but when I open the Python in Raspberry Pi, it reappears as 3.9.2
    You know maybe how do I set this to default in thonny?

    • @siddharamdivate9710
      @siddharamdivate9710 2 роки тому

      Yeah, Same for me

    • @SamWestbyTech
      @SamWestbyTech  2 роки тому

      Pyenv does not change python versions in thonny. You’ll have to run the script from the terminal instead of from thonny. Or you’ll have to follow a different method to change python versions in thonny

    • @avivkarbassi7837
      @avivkarbassi7837 2 роки тому

      Ok sir so how can I change python version in thonny ?

    • @tuvsheecs4883
      @tuvsheecs4883 2 роки тому

      Same. Tensorflow cant install python 3.9.2

    • @poojagulhane7413
      @poojagulhane7413 2 роки тому

      @@avivkarbassi7837 hey did you got solution on that?

  • @anisakaric5130
    @anisakaric5130 3 місяці тому

    Has anyone faced with error: ..cp39-none-linux-aarch64.whl is not supported wheel on this platform..? I would really need help if anyone was able to solve the error

    • @redemy2591
      @redemy2591 21 день тому

      i had the same error, to fix it i had to make sure i was running on python 3.9.2, newer versions dont work

    • @anisakaric5130
      @anisakaric5130 21 день тому

      @@redemy2591 Yea,I did the same thing,it works pretty well with 3.9 version.Thank you for answering.

  • @hri7ik
    @hri7ik 2 роки тому +1

    hey man! really like your tutorials! But in this case I am getting the following error:
    "ERROR: Wheel 'tensorflow' located at /home/pi/Desktop/project/tensorflow-2.5.0-cp37-none-linux_armv7l.whl is invalid."
    ps. im trying to install tensorflow in Raspberry pi 2 B with python 3.7.12

    • @SamWestbyTech
      @SamWestbyTech  2 роки тому +1

      Ok double check your python version is 3.7 with “python -V”
      Double check you have armv7l with “uname -m”
      Let me know the output of these

    • @hri7ik
      @hri7ik 2 роки тому

      @@SamWestbyTech yeah it's showing python 3.7.12 and armv7l as outputs

    • @julianhernandez8992
      @julianhernandez8992 2 роки тому +1

      @@SamWestbyTech having the same problem

    • @julianhernandez8992
      @julianhernandez8992 2 роки тому +1

      @@hri7ik It's the linux version one

    • @avivkarbassi7837
      @avivkarbassi7837 2 роки тому +1

      Same problem here plz plz help!!!

  • @DrTLN
    @DrTLN Рік тому

    is this works on python 3.11.2

  • @saiots8651
    @saiots8651 2 роки тому

    nice video bro ... but make the same for pi 3 please ...

  • @lazy.researcher
    @lazy.researcher 2 роки тому

    installment of librosa ..... please

  • @harshpatil6167
    @harshpatil6167 2 роки тому +1

    देवमाणूस(God) Bro🙏🙏

  • @amirgharghabi1970
    @amirgharghabi1970 2 роки тому

    thanks for your excellent video.
    When I type pyenv install 3.7.12, it gets stuck on "patching file configure" and doesn't move on. how can I fix it?
    I also tried other versions of python still not working. RP 3B 32bit armv7l current py version: 3.9.2

    • @SamWestbyTech
      @SamWestbyTech  2 роки тому

      How long have you let it run? This step takes a while

    • @amirgharghabi1970
      @amirgharghabi1970 2 роки тому

      @@SamWestbyTech about 20 mins.
      but then I changed my os to 64bit and as I didn't need to change my python version anymore, so the problem is solved automatically :)

    • @SamWestbyTech
      @SamWestbyTech  2 роки тому

      @@amirgharghabi1970 Glad to hear you got it working!

  • @kearneyIT
    @kearneyIT 2 роки тому

    your vide are kick ass please do a bignners tutorial on OpenCV and TensorFlow and make it for "dummies"

    • @kearneyIT
      @kearneyIT 2 роки тому

      just like my writing haha