How to Install TensorFlow 2 and OpenCV on a Raspberry Pi

แชร์
ฝัง
  • เผยแพร่เมื่อ 1 ต.ค. 2024

ความคิดเห็น • 187

  • @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. 👍

  • @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)

  • @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 7 หลายเดือนก่อน

      Thank you so much for mentioning this@@adamgulamhusein8768

  • @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 7 หลายเดือนก่อน

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

    • @suheladesilva2933
      @suheladesilva2933 7 หลายเดือนก่อน

      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.

  • @francisluna6577
    @francisluna6577 2 หลายเดือนก่อน +1

    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

  • @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

  • @sahilsaxena5023
    @sahilsaxena5023 ปีที่แล้ว +1

    getting error : not a supported wheel on this platform

  • @timothyhassett9342
    @timothyhassett9342 ปีที่แล้ว +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

  • @jmvaleriano8839
    @jmvaleriano8839 ปีที่แล้ว +1

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

  • @uwelorenz4516
    @uwelorenz4516 ปีที่แล้ว +2

    ein erstklassiges Video !! 👍

  • @hasrat17
    @hasrat17 ปีที่แล้ว +2

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

    • @kvakash8912
      @kvakash8912 5 หลายเดือนก่อน +1

      which file did u use

    • @hasrat17
      @hasrat17 5 หลายเดือนก่อน

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

    • @kvakash8912
      @kvakash8912 5 หลายเดือนก่อน

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

  • @roybran2
    @roybran2 2 ปีที่แล้ว +1

    Thanks for a great tutorial. Subscribe and Liked :)

  • @KAZITASNUVAALVI
    @KAZITASNUVAALVI 2 ปีที่แล้ว +1

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

  • @ardaucar9006
    @ardaucar9006 8 หลายเดือนก่อน

    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()

  • @anisakaric5130
    @anisakaric5130 28 วันที่ผ่านมา

    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

  • @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 4 หลายเดือนก่อน

      same problème how did you solve it?

  • @Salehalanazi-7
    @Salehalanazi-7 2 ปีที่แล้ว +2

    Dude is basically a legend

  • @steveconway5972
    @steveconway5972 9 หลายเดือนก่อน +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!

  • @kvakash8912
    @kvakash8912 5 หลายเดือนก่อน

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

  • @amandak1396
    @amandak1396 7 หลายเดือนก่อน

    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.

  • @mahmoudaldidamoni
    @mahmoudaldidamoni 2 ปีที่แล้ว +2

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

  • @SportsVisionbyDrLaby
    @SportsVisionbyDrLaby 2 ปีที่แล้ว

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

  • @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

  • @Giggle_Wiggle_
    @Giggle_Wiggle_ 2 หลายเดือนก่อน

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

  • @nagarajanramamurthi9751
    @nagarajanramamurthi9751 8 หลายเดือนก่อน

    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).

  • @AagaashKr-h2x
    @AagaashKr-h2x 9 หลายเดือนก่อน

    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?

  • @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).

  • @Kaeldrom
    @Kaeldrom 8 หลายเดือนก่อน

    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?

  • @ernobenko7168
    @ernobenko7168 9 หลายเดือนก่อน

    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

  • @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 6 หลายเดือนก่อน

      same here, did you find any solution?

  • @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.....!!!!!

  • @harshpatil6167
    @harshpatil6167 2 ปีที่แล้ว +1

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

  • @nature-tr6sg
    @nature-tr6sg 2 ปีที่แล้ว +1

    thank you

  • @yogastenhie33
    @yogastenhie33 9 หลายเดือนก่อน

    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

  • @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

  • @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)

  • @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.

  • @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

  • @DukeDamaz
    @DukeDamaz 5 หลายเดือนก่อน

    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 4 หลายเดือนก่อน +1

      hello did you solve this problem?

    • @DukeDamaz
      @DukeDamaz 4 หลายเดือนก่อน

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

  • @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)

  • @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)

  • @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

  • @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

  • @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

  • @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?

  • @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

  • @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

  • @Mr.Rorschakh
    @Mr.Rorschakh 2 ปีที่แล้ว

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

  • @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

  • @saraharbi8807
    @saraharbi8807 4 หลายเดือนก่อน

    Thank you for this helpful video

  • @saiots8651
    @saiots8651 2 ปีที่แล้ว

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

  • @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.

    • @SamWestbyTech
      @SamWestbyTech  2 ปีที่แล้ว

      Yep 64-bit makes it way easier

  • @mithi4377
    @mithi4377 ปีที่แล้ว

    Github raw file is not opening what to do??

  • @dawood7708
    @dawood7708 ปีที่แล้ว

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

  • @danyalcodes
    @danyalcodes ปีที่แล้ว

    Thanks brother. Really helpful

  • @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

  • @newsonsports7457
    @newsonsports7457 2 ปีที่แล้ว

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

  • @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

  • @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?

  • @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

  • @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 !!

  • @furkanbaydar5706
    @furkanbaydar5706 8 หลายเดือนก่อน

    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 8 หลายเดือนก่อน

      You got a RPi 5?

  • @ricardovazquez4333
    @ricardovazquez4333 ปีที่แล้ว

    why do we need the virtual environment for?

  • @kevindwi7757
    @kevindwi7757 2 ปีที่แล้ว

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

  • @cuongduongbinh4036
    @cuongduongbinh4036 ปีที่แล้ว

    wonderful, this is exactly what I need !! 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!

  • @deepenshrestha5869
    @deepenshrestha5869 11 หลายเดือนก่อน

    it was really helpful. Thank you so much

  • @farisalafndi1331
    @farisalafndi1331 ปีที่แล้ว

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

    • @SamWestbyTech
      @SamWestbyTech  ปีที่แล้ว

      I’ll add things with mediapipe to my list

  • @DineshOsti-mu8lp
    @DineshOsti-mu8lp ปีที่แล้ว

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

  • @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

  • @saiots8651
    @saiots8651 2 ปีที่แล้ว

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

  • @MegaDavY
    @MegaDavY ปีที่แล้ว

    when I try to install OpenCV, when importing I get this: ImportError: libavcodec.so.58: cannot open shared object file: No such file or directory

  • @lllLockonXstratoslll
    @lllLockonXstratoslll ปีที่แล้ว

    well presented well documented video, thank yu

  • @Ducerobot
    @Ducerobot ปีที่แล้ว

    Well its back to the jetson nano.❤

  • @BigGetit1
    @BigGetit1 2 ปีที่แล้ว

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

  • @manuelcarriedo4404
    @manuelcarriedo4404 ปีที่แล้ว

    great video Sam. Thanks for sharing.

  • @jomarialano8941
    @jomarialano8941 ปีที่แล้ว

    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  ปีที่แล้ว

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

    • @Eckxter
      @Eckxter ปีที่แล้ว

      @@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.

  • @khalfaouimedamine2940
    @khalfaouimedamine2940 ปีที่แล้ว

    thank you so mush it was so helpfull

  • @carljohnjaojao8848
    @carljohnjaojao8848 2 ปีที่แล้ว

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

  • @jaysonpaspe6113
    @jaysonpaspe6113 2 ปีที่แล้ว

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

  • @louaytrabelsi2401
    @louaytrabelsi2401 ปีที่แล้ว

    this was really helpful
    thank you

  • @aymeneabdelillahkerrouche3251
    @aymeneabdelillahkerrouche3251 2 ปีที่แล้ว

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

  • @Dr.AhmedQusaySabri
    @Dr.AhmedQusaySabri ปีที่แล้ว

    Thanks a lot

  • @stahelpeter
    @stahelpeter 2 ปีที่แล้ว

    Great video and very well explained. Thank you very much

  • @lazy.researcher
    @lazy.researcher ปีที่แล้ว

    installment of librosa ..... please

  • @isaakr.7485
    @isaakr.7485 2 ปีที่แล้ว

    Ey hello i have a weird problem in the last part about instal the tensorflow wheel archive, show me the next error: ERROR: Wheel 'tensorflow' located at /home/isaakrangel/project/tensorflow-2.5.0-cp37-none-linux_armv7l.whl is invalid.
    and i dont know what to do next, can u help me pls :c

    • @SamWestbyTech
      @SamWestbyTech  2 ปีที่แล้ว

      I think you picked the wrong whl file. Three questions: do you have Python version 3.7, are you using the 32-bit raspberry pi OS, and have you tried a .whl file that specifies a Numpy version?

  • @mohammedalnaimi3286
    @mohammedalnaimi3286 2 ปีที่แล้ว

    thank you so much you almost covered everything 😁

  • @DrTLN
    @DrTLN 11 หลายเดือนก่อน

    is this works on python 3.11.2

  • @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

  • @issamelimrany
    @issamelimrany ปีที่แล้ว

    Excellent explanation, clear and to the point.

  • @dungphantan792
    @dungphantan792 2 ปีที่แล้ว

    What version of Raspberry are you using?

  • @realpotiny
    @realpotiny ปีที่แล้ว

    This was so helpful. Thanks alot!!

  • @sarthakdas6059
    @sarthakdas6059 ปีที่แล้ว

    15:45 open cv

  • @박도윤-r2f
    @박도윤-r2f 2 ปีที่แล้ว

    Thank you so much!!! U R HERO 👍

  • @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 ?

  • @kevinangers
    @kevinangers 2 ปีที่แล้ว

    This was insanely helpful, thanks alot

  • @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?

  • @muhammetozturk3327
    @muhammetozturk3327 2 ปีที่แล้ว

    thank you man

  • @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?

  • @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!!!