tensorflow-on-raspberry-pi
tensorflow-on-raspberry-pi copied to clipboard
pip installation does not work with Raspbian 9 at Raspberrypi3b
Describe the Issue
*1 tried to install from pip as described
- "sudo pip3 install tensorflow-1.1.0-cp34-cp34m-linux_armv7l.whl" ends with error message: "tensorflow-1.1.0-cp34-cp34m-linux_armv7l.whl is not a supported wheel on this platform."
*2 buildin from source faild, too can not change line 283 in file WORKSPACE (https -> http) because only 82 lines are available
Steps to Reproduce
*1
- "sudo apt-get update" -> ok
- "sudo apt-get install python3-pip python3-dev" -> ok
- "wget https://github.com/samjabrahams/tensorflow-on-raspberry-pi/releases/download/v1.1.0/tensorflow-1.1.0-cp34-cp34m-linux_armv7l.whl" -> ok
- "sudo pip3 install tensorflow-1.1.0-cp34-cp34m-linux_armv7l.whl" -> faild
Hardware/Software Info
Please provide the following information about your Raspberry Pi setup:
- Raspberry Pi model: 3B
- Operating System used: Raspbian9
- Version of Python used: 3.4
- SD card memory size: 16GByte
- Size of USB/other device used as swap (if building from source): 4 GByte
- TensorFlow git commit hash (if building from source): *2 084d29e67a72e369958c18ae6abfe2752fcddcbf
Relevant Console Output/Logs
see "Describe the Issue" *1
Hi @RaspCla, I met the same problem. Did you fix it somehow?
No, at the moment I'm out of time to do more investigations. May be I can continue beginning of October :-)
The new system is using python3.5 as default. You need to change the name in .whl from "cp34" to "cp35".
@AndersonBY Hi, I'm not a Linux expert. But if I start python from commmand line it shows:
pi@raspberrypi3:~ $ python
Python 2.7.13 (default, Jan 19 2017, 14:48:08)
[GCC 6.3.0 20170124] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>>
which means Python 2.7.13 is default for Raspbian9 ??
@RaspCla Try
sudo apt-get update
sudo apt-get upgrade
Mine is 3.5
did it. but afterwards my version is still 2.7.13.
I can manually set an alias to V3.5 see: https://linuxconfig.org/how-to-change-from-default-to-alternative-python-version-on-debian-linux afterwards my version is:
pi@raspberrypi3:~ $ python --version
Python 3.5.3
pi@raspberrypi3:~ $
but nevertheless
sudo pip3 install tensorflow-1.1.0-cp34-cp34m-linux_armv7l.whl
fails (and there is no cp35 variant)
You have python 3.5...
after wget, find the whl file, and rename it: tensorflow-1.1.0-cp34-cp34m-linux_armv7l.whl to tensorflow-1.1.0-cp35-cp35m-linux_armv7l.whl
now run this: sudo pip3 install tensorflow-1.1.0-cp35-cp35m-linux_armv7l.whl
it should work now
@filad thank you for support. installed right now.
@AndersonBY it works for me 👍 , thank you!
@filad Thank you
@AndersonBY i did what you told but getting not found error can i have tensor flow 1.1.0 for python 3.5
@filad: this is not working for me...... I have python 3.5 and 2.7 pre installed with rasbian stretch...but unable to install tensorflow..... pi@raspberrypi:~ $ sudo pip3 install tensorflow-1.1.0-cp35-cp35m-linux_armv7l.whl Requirement 'tensorflow-1.1.0-cp35-cp35m-linux_armv7l.whl' looks like a filename, but the file does not exist Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple Processing ./tensorflow-1.1.0-cp35-cp35m-linux_armv7l.whl Could not install packages due to an EnvironmentError: [Errno 2] No such file or directory: '/home/pi/tensorflow-1.1.0-cp35-cp35m-linux_armv7l.whl'
pi@raspberrypi:~ $ pip install python3.4
@3073: First of all, you have to download tensorflow using this command on your command line: wget https://github.com/samjabrahams/tensorflow-on-raspberry-pi/releases/download/v1.1.0/tensorflow-1.1.0-cp34-cp34m-linux_armv7l.whl and than rename it to: tensorflow-1.1.0-cp35-cp35m-linux_armv7l.whl if you are using python 3.5! if you are using python 3.4 just keep it as it is
I said not working
On Thu, Jul 5, 2018 at 6:44 PM, Azam [email protected] wrote:
First of all, you have to download tensorflow using this command on your command line: wget https://github.com/samjabrahams/tensorflow-on- raspberry-pi/releases/download/v1.1.0/tensorflow-1. 1.0-cp34-cp34m-linux_armv7l.whl and than rename it to: tensorflow-1.1.0-cp35-cp35m-linux_armv7l.whl if you are using python 3.5! if you are using python 3.4 just keep it as it is
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/samjabrahams/tensorflow-on-raspberry-pi/issues/112#issuecomment-402900509, or mute the thread https://github.com/notifications/unsubscribe-auth/AgXgde1gq8835AgCwg5Jmf_0DrSVkdiMks5uDsD3gaJpZM4O_VwQ .
please do not repeat an answer
On Fri, Jul 6, 2018 at 3:04 AM, Amare Mahtsentu [email protected] wrote:
I said not working
On Thu, Jul 5, 2018 at 6:44 PM, Azam [email protected] wrote:
First of all, you have to download tensorflow using this command on your command line: wget https://github.com/samjabraham s/tensorflow-on-raspberry-pi/releases/download/v1.1.0/ tensorflow-1.1.0-cp34-cp34m-linux_armv7l.whl and than rename it to: tensorflow-1.1.0-cp35-cp35m-linux_armv7l.whl if you are using python 3.5! if you are using python 3.4 just keep it as it is
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/samjabrahams/tensorflow-on-raspberry-pi/issues/112#issuecomment-402900509, or mute the thread https://github.com/notifications/unsubscribe-auth/AgXgde1gq8835AgCwg5Jmf_0DrSVkdiMks5uDsD3gaJpZM4O_VwQ .