I'm trying to install TensorFlow on a Raspberry Pi 2 with Raspian Lite OS installed on and a 8 Gb SD card. I'm using Python version 2.7.9 and I'm trying to install TensorFlow for it. I previously searched and tried to solve the problem by me but couldn't do it. Already followed these guides:
- TensorFlow Official Guide
- IotMakerBlog guide
- Sam J Abrahams guide on GitHub
I have also read a lot of solutions proposed in some other Stack Overflow questions, but the problem is always the same:
tensorflow-1.1.0-cp27-none-linux_armv7l.whl is not a supported wheel on this platform.
This happens everytime I try to download the .whl and use pip to install it. Moreover, if I try to use pip directly, the error I get is the following:
# pip install tensorflow
Collecting tensorflow
Could not find a version that satisfies the requirement tensorflow (from versions: )
No matching distribution found for tensorflow
I also tried with pip2 as suggested in some guides and I also tried to install the Python 3 version. The result is the same as here.
Could anyone help me? Many thanks.
You can follow this:
First, install the dependencies for TensorFlow:
Next, download the wheel file from this repository and install it:
Finally, we need to reinstall the mock library to keep it from throwing an error when we import TensorFlow:
See more details from tensorflow-on-raspberry-pi.
At the end I found that the problem was the processor. Indeed, with Raspbian it is considered to be ARMv6 but it is ARMv7. So, changing OS to Ubuntu MATE did the trick. Now I have installed TensorFlow on my Pi.
@all, I noticed that you were trying to have tensorflow running on Raspberry Pi 2. If you are willing to try tensorflow lite on Raspberry Pi 3 as well, my "pull-request" may be useful. My contribution is at https://github.com/tensorflow/tensorflow/pull/24194.
Following my steps, 2 apps to get your own development started, label_image and camera, can run on Raspberry Pi 3.
Best,
--Jim
Miniconda (Anaconda) can install python 3.4 with a version of pip that can upgrade to the latest pip which can install tensorflow-1.11.0-cp34 as well as keras wheels for the Arm processor: