ไม่สามารถเล่นวิดีโอนี้
ขออภัยในความไม่สะดวก

Install TensorFlow on Raspberry Pi 3

แชร์
ฝัง
  • เผยแพร่เมื่อ 6 พ.ค. 2018
  • Step-wise guide on how to setup Tensorflow on Raspberry Pi 3 running Raspbian Stretch operating system.
    How to Install Raspbian on Pi : • Headless Install of Ra...
    Subscribe to stay tuned with videos on the channel.
    Follow the detailed install instructions on my blog:
    www.decipherte...
    Connect with me on Twitter at / deciphertechnic
    Please comment below for any queries or suggestions.

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

  • @DataSlayerMedia
    @DataSlayerMedia 5 ปีที่แล้ว

    Raspberry Pi TensorFlow Object Detection - th-cam.com/video/zqIBce4LKx8/w-d-xo.html

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

    Subscribed. Thank you so much. This is exactly what I needed to get my Pi running TensorFlow

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

    Package python-virtualenv is not available, but is referred to by another package.
    This may mean that the package is missing, has been obsoleted, or
    is only available from another source
    E: Package 'python-virtualenv' has no installation candidate error im getting please help

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

    Thanks a lot , now i would to make my own image classifier and i don't understand the Tensorflow tutorial, i mean it's quiet complicated for me bacause i'm not familiar with python and coding, i'm newbie ... lol
    i've some photos to train the AI, and i need to compare a photo taken using my camera with those photos, it is possible if yes, please, can you make such a tutorial ?

  • @warefhani3618
    @warefhani3618 5 ปีที่แล้ว

    If you get this error : ImportError: libf77blas.so.3 when using the command : import teseorflow as tf ,
    Please use this command and retry :
    sudo apt-get install libatlas-base-dev

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

    Hi! I would like to ask if this tutorial will work if I only use 8gb of sd card in raspberry pi 1 model B? Thanks.

    • @DecipherTechnic
      @DecipherTechnic  5 ปีที่แล้ว

      Any memory card of capacity higher than 8gb can be used... no issues

    • @markjasonong5668
      @markjasonong5668 5 ปีที่แล้ว

      @@DecipherTechnic Okay sir. thanks for answering my question🙂

    • @DecipherTechnic
      @DecipherTechnic  5 ปีที่แล้ว

      You are welcome dear. Stay subscribed

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

    Can you upgrade tensorflow to 1.12 after installing this in a virtual environment?

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

      No, empirically...I can say.. it's not possible

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

    I got error: command not found

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

    Where do you get Raspbian Stretch with Python 3.5 installed on?

  • @r.vigneshvignesh9654
    @r.vigneshvignesh9654 4 ปีที่แล้ว

    Hello bro, I used (tf.__version__) command but it's not shows the version 1.8.0 , but it shows (Traceback (most recent call last): please help me to solve this issues bro

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

    Thank's u Brother...so helpfully

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

    Nice content. It was worth watching.

  • @nekhilr4210
    @nekhilr4210 5 ปีที่แล้ว

    aceback (most recent call last):
    File "/home/pi/tensorflow/lib/python3.5/site-packages/pip/_vendor/urllib3/contrib/pyopenssl.py", line 285, in recv_into
    return self.connection.recv_into(*args, **kwargs)
    File "/usr/lib/python3/dist-packages/OpenSSL/SSL.py", line 1335, in recv_into
    self._raise_ssl_error(self._ssl, result)
    File "/usr/lib/python3/dist-packages/OpenSSL/SSL.py", line 1149, in _raise_ssl_error
    raise WantReadError()
    OpenSSL.SSL.WantReadError
    During handling of the above exception, another exception occurred:

    • @nekhilr4210
      @nekhilr4210 5 ปีที่แล้ว

      i am getting error like this while running the command pip3 install url

  • @pkumarshekar
    @pkumarshekar 5 ปีที่แล้ว

    I am getting an error
    tensorflow-1.11.0-cp35-none-linux_aarch64.whl is not a supported wheel on this platform.

    • @bacnguyen767
      @bacnguyen767 5 ปีที่แล้ว

      I get the same problem!! Did you solve it? could you show me how to fix it?thanks

  • @kabileshr7390
    @kabileshr7390 4 ปีที่แล้ว

    thank you for this wonderful video. I am getting the error Original error was: libf77blas.so.3: cannot open shared object file: No such file or directory

  • @jengitsu
    @jengitsu 5 ปีที่แล้ว

    He made it soo easy, imagine how much time it would take to build tensorflow with external swap space included

    • @DecipherTechnic
      @DecipherTechnic  5 ปีที่แล้ว

      Thank you..for such nice comment. Consider subscribing for more such videos

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

      @@DecipherTechnic I already did mate!

    • @jengitsu
      @jengitsu 5 ปีที่แล้ว

      @@DecipherTechnic Just paste all the commands in the video description, that would be helpful for other people, reduces the burden of typing!

    • @DecipherTechnic
      @DecipherTechnic  5 ปีที่แล้ว

      Actually, I have made a separate website for that. www.deciphertechnic.com

  • @jessicabojorquez4162
    @jessicabojorquez4162 3 ปีที่แล้ว

    Subscribed, thank you!!

  • @jamespowell7231
    @jamespowell7231 5 ปีที่แล้ว

    I wanted to share an issue that I had in case someone else has the same issue. When you install pip3 install tensorflow, no matter the version, it does not compile protobuf automatically, you still have to do that part yourself. I thought it did and I kept getting bash protoc command not found. It was straight twisting my brain around. ALSO when you "pip3 install tensorflow" it's going to install 1.11 and if you're running raspbian stretch 9.0 you might get runtime and compile errors 'when' you fire up python. I used the armwheel for 1.12 and it cleared those error up. On some tutorials, people were saying that the errors when running python were okay but if you're like I 'do not' spend hours compiling and programming to get errors, again 1.12 clears them up so just "pip3 install github.com/lhelontra/tensorflow-on-arm/releases/download/v1.12.0/tensorflow-1.12.0-cp35-none-linux_armv7l.whl", without the quotes of course.

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

    This is terrific, thank you!

    • @DecipherTechnic
      @DecipherTechnic  6 ปีที่แล้ว

      Welcome. Pls Subscribe to support the channel.

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

    wow thank you so much , please i have a problem , this erreur : ip install tensorflow-1.8.0-cp35-none-linux_armv7l.whl
    tensorflow-1.8.0-cp35-none-linux_armv7l.whl is not a supported wheel on this platform.

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

      Try updating your pi first. Then, make sure python3 is installed, u can use 'sudo apt-get install python3'. It should work fine.
      Hope it helps. Welcome :)

    • @gzhrk
      @gzhrk 6 ปีที่แล้ว

      is not a supported wheel on this platform.
      still have same problem , im trying
      import pip
      print(pip.pep425tags.get_supported())
      but not working also this command , please i need to install tensorflow for my project and i dont know , this project i need to finish befor next friday , please help me

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

      tell me exact errors in output. May be you haven't installed virtual environment successfully. And, try upgrading pip first, 'pip install --upgrade pip'

    • @aswathgi6468
      @aswathgi6468 6 ปีที่แล้ว

      I'm also facing the same Error :(
      While doing "vitutalenv --system-site-packages -p python3 tensorflow", it was showing :
      "Installing setuptools, pip... done."
      "Package resources,wheel " didn't appear on mine like yours. :(
      I also did sudo apt-get update & upgrde
      and pip install -- upgrade pip.

    • @DecipherTechnic
      @DecipherTechnic  6 ปีที่แล้ว

      Not sure now..Why this error persists...I need to investigate

  • @can6012
    @can6012 3 ปีที่แล้ว

    At the last second of the installion the process stopped and i got that error code Looking in indexes: pypi.org/simple, www.piwheels.org/simple
    bash: Looking: no comment . How can i fix it?

  • @pkumarshekar
    @pkumarshekar 5 ปีที่แล้ว

    Great video. Thanks mate

  • @parveenkumar-od9bu
    @parveenkumar-od9bu 6 ปีที่แล้ว +1

    Excellent video of course very useful

    • @DecipherTechnic
      @DecipherTechnic  6 ปีที่แล้ว

      Thanks. Pls subscribe to promote channel, if you haven't done yet.

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

    Thank you very much

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

      Welcome. I am happy I could help. Can you plz subscribe to support the channel.

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

    thanks man!

    • @DecipherTechnic
      @DecipherTechnic  6 ปีที่แล้ว

      Welcome dear. Please subscribe to support the channel

  • @tommysuryajaya750
    @tommysuryajaya750 6 ปีที่แล้ว

    i have installed keras, and tensorflow.
    but when i try to import keras on python3...
    the error is no module name tensorflow.python
    can u help me to solve this problem?

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

      pls import keras library which comes with in tensorflow. Otherwise, I think keras doesn't work on Pi. I will upload a tutorial for that soon

    • @GuitarMusingsWithPradhyumn
      @GuitarMusingsWithPradhyumn 6 ปีที่แล้ว

      same problem i am getting, please solve it.

    • @jessicabojorquez4162
      @jessicabojorquez4162 3 ปีที่แล้ว

      @@DecipherTechnic how is importing "keras library which comes with tensorflow" in relation to what you have done here? I need to install tensorflow 2.3.1 and keras 2.4.3 Should I not follow this tutorial if I need these two together?

  • @jatinderarora2261
    @jatinderarora2261 5 ปีที่แล้ว

    Thanks !

  • @salah-eddineboucetta5847
    @salah-eddineboucetta5847 5 ปีที่แล้ว

    very useful

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

    Are you running Raspberry Pi virtual machine on Windows 10?

  • @ernstschulz6377
    @ernstschulz6377 6 ปีที่แล้ว

    Thank You
    but it doesnt work for me.
    Rasbian Image from May 2018
    Then
    sudo apt-get update
    sudo apt-get upgrade
    sudo apt-get install python3.pip
    sudo apt-get install python3-numpy
    sudo apt-get install python3-dev
    sudo apt-get install python-virtualenv
    virtualenv --system-site-packages -p python3 tensorflow
    source ~/tensorflow/bin/activate
    easy_install -U pip
    pip3 install github.com/lhelontra/tensorflow-on-arm/releases/download/v1.8.0/tensorflow-1.8.0-cp35-none-linux_armv7l.whl
    python
    import tensorflow as tf
    I got this message
    >>> import tensorflow as tf
    Traceback (most recent call last):
    File "/home/pi/tensorflow/lib/python3.5/site-packages/numpy/core/__init__.py", line 16, in
    from . import multiarray
    ImportError: libf77blas.so.3: cannot open shared object file: No such file or directory
    During handling of the above exception, another exception occurred:
    Traceback (most recent call last):
    File "", line 1, in
    File "/home/pi/tensorflow/lib/python3.5/site-packages/tensorflow/__init__.py", line 24, in
    from tensorflow.python import pywrap_tensorflow # pylint: disable=unused-import
    File "/home/pi/tensorflow/lib/python3.5/site-packages/tensorflow/python/__init__.py", line 47, in
    import numpy as np
    File "/home/pi/tensorflow/lib/python3.5/site-packages/numpy/__init__.py", line 142, in
    from . import add_newdocs
    File "/home/pi/tensorflow/lib/python3.5/site-packages/numpy/add_newdocs.py", line 13, in
    from numpy.lib import add_newdoc
    File "/home/pi/tensorflow/lib/python3.5/site-packages/numpy/lib/__init__.py", line 8, in
    from .type_check import *
    File "/home/pi/tensorflow/lib/python3.5/site-packages/numpy/lib/type_check.py", line 11, in
    import numpy.core.numeric as _nx
    File "/home/pi/tensorflow/lib/python3.5/site-packages/numpy/core/__init__.py", line 26, in
    raise ImportError(msg)
    ImportError:
    Importing the multiarray numpy extension module failed. Most
    likely you are trying to import a failed build of numpy.
    If you're working with a numpy git repo, try `git clean -xdf` (removes all
    files not under version control). Otherwise reinstall numpy.
    Original error was: libf77blas.so.3: cannot open shared object file: No such file or directory
    >>>

    • @DecipherTechnic
      @DecipherTechnic  6 ปีที่แล้ว

      Pls Try, sudo apt-get install libblas-dev libatlas-dev libatlas-base-dev
      Then, run tensorflow again.
      Hope it helps. Welcome

    • @ernstschulz6377
      @ernstschulz6377 6 ปีที่แล้ว

      Thank you for the feedback, but:
      pi@raspberrypi:~ $ sudo apt-get install libblas-dev libatlas-dev libatlas-base-dev
      Reading package lists... Done
      Building dependency tree
      Reading state information... Done
      libatlas-base-dev is already the newest version (3.10.3-1+rpi1).
      libatlas-dev is already the newest version (3.10.3-1+rpi1).
      libatlas-dev set to manually installed.
      libblas-dev is already the newest version (3.7.0-2).
      The following packages were automatically installed and are no longer required:
      lxkeymap python-cairo python-gobject python-gobject-2 python-gtk2
      python-xklavier
      Use 'sudo apt autoremove' to remove them.
      0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
      pi@raspberrypi:~ $ python
      Python 2.7.13 (default, Nov 24 2017, 17:33:09)
      [GCC 6.3.0 20170516] on linux2
      Type "help", "copyright", "credits" or "license" for more information.
      >>> import tensorflow as tf
      Traceback (most recent call last):
      File "", line 1, in
      ImportError: No module named tensorflow
      >>>

    • @DecipherTechnic
      @DecipherTechnic  6 ปีที่แล้ว

      Make sure you are in Virtual Environment till now

    • @ernstschulz6377
      @ernstschulz6377 6 ปีที่แล้ว

      Ist ok now thank you!
      pi@raspberrypi:~ $ source ~/tensorflow/bin/activate
      (tensorflow) pi@raspberrypi:~ $ sudo apt-get install libblas-dev libatlas-dev li batlas-base-dev
      Reading package lists... Done
      Building dependency tree
      Reading state information... Done
      libatlas-base-dev is already the newest version (3.10.3-1+rpi1).
      libatlas-dev is already the newest version (3.10.3-1+rpi1).
      libblas-dev is already the newest version (3.7.0-2).
      The following packages were automatically installed and are no longer required:
      lxkeymap python-cairo python-gobject python-gobject-2 python-gtk2
      python-xklavier
      Use 'sudo apt autoremove' to remove them.
      0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
      (tensorflow) pi@raspberrypi:~ $ pip3 install github.com/lhelontra/tensor flow-on-arm/releases/download/v1.8.0/tensorflow-1.8.0-cp35-none-linux_armv7l.whl
      Looking in indexes: pypi.org/simple, www.piwheels.org/simple
      Requirement already satisfied: tensorflow==1.8.0 from github.com/lhelont ra/tensorflow-on-arm/releases/download/v1.8.0/tensorflow-1.8.0-cp35-none-linux_a rmv7l.whl in ./tensorflow/lib/python3.5/site-packages (1.8.0)
      Requirement already satisfied: gast>=0.2.0 in ./tensorflow/lib/python3.5/site-pa ckages (from tensorflow==1.8.0) (0.2.0)
      Requirement already satisfied: wheel>=0.26 in ./tensorflow/lib/python3.5/site-pa ckages (from tensorflow==1.8.0) (0.31.1)
      Requirement already satisfied: grpcio>=1.8.6 in ./tensorflow/lib/python3.5/site- packages (from tensorflow==1.8.0) (1.12.0)
      Requirement already satisfied: astor>=0.6.0 in ./tensorflow/lib/python3.5/site-p ackages (from tensorflow==1.8.0) (0.6.2)
      Requirement already satisfied: absl-py>=0.1.6 in ./tensorflow/lib/python3.5/site -packages (from tensorflow==1.8.0) (0.2.2)
      Requirement already satisfied: protobuf>=3.4.0 in ./tensorflow/lib/python3.5/sit e-packages (from tensorflow==1.8.0) (3.5.2.post1)
      Requirement already satisfied: six>=1.10.0 in /usr/local/lib/python3.5/dist-pack ages (from tensorflow==1.8.0) (1.11.0)
      Requirement already satisfied: tensorboard=1.8.0 in ./tensorflow/lib/pyt hon3.5/site-packages (from tensorflow==1.8.0) (1.8.0)
      Requirement already satisfied: termcolor>=1.1.0 in ./tensorflow/lib/python3.5/si te-packages (from tensorflow==1.8.0) (1.1.0)
      Requirement already satisfied: numpy>=1.13.3 in ./tensorflow/lib/python3.5/site- packages (from tensorflow==1.8.0) (1.14.3)
      Requirement already satisfied: setuptools in ./tensorflow/lib/python3.5/site-pac kages (from protobuf>=3.4.0->tensorflow==1.8.0) (39.2.0)
      Requirement already satisfied: html5lib==0.9999999 in ./tensorflow/lib/python3.5 /site-packages (from tensorboard=1.8.0->tensorflow==1.8.0) (0.9999999)
      Requirement already satisfied: werkzeug>=0.11.10 in /usr/lib/python3/dist-packag es (from tensorboard=1.8.0->tensorflow==1.8.0) (0.11.15)
      Requirement already satisfied: markdown>=2.6.8 in ./tensorflow/lib/python3.5/sit e-packages (from tensorboard=1.8.0->tensorflow==1.8.0) (2.6.11)
      Requirement already satisfied: bleach==1.5.0 in ./tensorflow/lib/python3.5/site- packages (from tensorboard=1.8.0->tensorflow==1.8.0) (1.5.0)
      (tensorflow) pi@raspberrypi:~ $ python
      Python 3.5.3 (default, Jan 19 2017, 14:11:04)
      [GCC 6.3.0 20170124] on linux
      Type "help", "copyright", "credits" or "license" for more information.
      >>> import tensorflow as tf
      /usr/lib/python3/dist-packages/h5py/__init__.py:34: FutureWarning: Conversion of the second argument of issubdtype from `float` to `np.floating` is deprecated. In future, it will be treated as `np.float64 == np.dtype(float).type`.
      from ._conv import register_converters as _register_converters
      >>> tf.__version__
      '1.8.0'
      >>>

  • @suidani89
    @suidani89 6 ปีที่แล้ว

    Great! But, How can I delete or uninstall it? :D

    • @DecipherTechnic
      @DecipherTechnic  6 ปีที่แล้ว

      Just delete the tenserflow directory

    • @DecipherTechnic
      @DecipherTechnic  6 ปีที่แล้ว

      Pls subscribe to promote the channel. Tnx

    • @suidani89
      @suidani89 6 ปีที่แล้ว

      Decipher Technic I've try it but I can't do it and I get error because it says that don't be directory. (Sorry my english) :D

    • @DecipherTechnic
      @DecipherTechnic  6 ปีที่แล้ว

      No, just try to find that folder in home somewhere..may be inside envs directory...and delete manually

  • @aswathgi6468
    @aswathgi6468 6 ปีที่แล้ว

    Error:" whl is not a supported wheel on this platform." ... Solved!!
    Try installing Python3.5.2 version.
    Follow the steps..
    1. First of all you need to get your dependencies right. That mostly depend on what you have already installed previously. So for a vanilla fresh Raspbian (jessie), you will (approximately) need to make sure you have these:
    sudo apt-get install build-essential libc6-dev
    sudo apt-get install libncurses5-dev libncursesw5-dev libreadline6-dev
    sudo apt-get install libdb5.3-dev libgdbm-dev libsqlite3-dev libssl-dev
    sudo apt-get install libbz2-dev libexpat1-dev liblzma-dev zlib1g-dev
    2. The rest is simple. First download and extract...
    cd $HOME
    wget www.python.org/ftp/python/3.5.2/Python-3.5.2.tgz
    tar -zxvf Python-3.5.2.tgz
    3. and then compile with:
    cd Python-3.5.2
    ./configure # 3 min 13 s
    # We have 4 processors, so let's use 4 threads
    make -j4 # 8 min 29 s
    sudo make install # ~ 4 min
    4. Now test with:
    cd
    python3 --version
    # output: "Python 3.5.2"
    pip3 list
    # output:
    # pip (8.1.1)
    # setuptools (20.10.1)
    # You are using pip version 8.1.1, however version 8.1.2 is available.
    # You should consider upgrading via the 'pip install --upgrade pip' command.
    5. Update your default pip installation with:
    sudo pip3 install -U pip
    sudo pip3 install -U setuptools
    Done!
    Run the tensorflow installation from GitHub​ using whl. This time it should work. :)