tensorflow-on-raspberry-pi icon indicating copy to clipboard operation
tensorflow-on-raspberry-pi copied to clipboard

pip installation does not work with Raspbian 9 at Raspberrypi3b

Open RaspCla opened this issue 6 years ago • 15 comments

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

RaspCla avatar Aug 23 '17 00:08 RaspCla

Hi @RaspCla, I met the same problem. Did you fix it somehow?

BichenZhang avatar Sep 17 '17 21:09 BichenZhang

No, at the moment I'm out of time to do more investigations. May be I can continue beginning of October :-)

RaspCla avatar Sep 17 '17 21:09 RaspCla

The new system is using python3.5 as default. You need to change the name in .whl from "cp34" to "cp35".

AndersonBY avatar Sep 18 '17 03:09 AndersonBY

@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 avatar Sep 18 '17 18:09 RaspCla

@RaspCla Try sudo apt-get update sudo apt-get upgrade Mine is 3.5

BichenZhang avatar Sep 18 '17 19:09 BichenZhang

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)

RaspCla avatar Sep 18 '17 19:09 RaspCla

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 avatar Nov 24 '17 02:11 filad

@filad thank you for support. installed right now.

alicankuklaci avatar Jan 12 '18 15:01 alicankuklaci

@AndersonBY it works for me 👍 , thank you!

zhilongjiang avatar Jan 26 '18 13:01 zhilongjiang

@filad Thank you

azammuminov avatar Feb 08 '18 08:02 azammuminov

@AndersonBY i did what you told but getting not found error can i have tensor flow 1.1.0 for python 3.5

abhiramvenkata avatar Mar 10 '18 13:03 abhiramvenkata

@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 avatar Jul 05 '18 21:07 3073

@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

azammuminov avatar Jul 06 '18 01:07 azammuminov

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 .

3073 avatar Jul 06 '18 10:07 3073

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 .

3073 avatar Jul 06 '18 10:07 3073