samjabrahams / tensorflow-on-raspberry-pi

TensorFlow for Raspberry Pi
Other
2.24k stars 495 forks source link

pip installation does not work with Raspbian 9 at Raspberrypi3b #112

Open RaspCla opened 7 years ago

RaspCla commented 7 years ago

Describe the Issue

*1 tried to install from pip as described

*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

Hardware/Software Info

Please provide the following information about your Raspberry Pi setup:

Relevant Console Output/Logs

see "Describe the Issue" *1

BichenZhang commented 7 years ago

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

RaspCla commented 7 years ago

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

AndersonBY commented 7 years ago

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

RaspCla commented 7 years ago

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

BichenZhang commented 7 years ago

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

RaspCla commented 7 years ago

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)

filad commented 6 years ago

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

alicankuklaci commented 6 years ago

@filad thank you for support. installed right now.

zhilongjiang commented 6 years ago

@AndersonBY it works for me 👍 , thank you!

azammuminov commented 6 years ago

@filad Thank you

abhiramvenkata commented 6 years ago

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

3073 commented 6 years ago

@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

azammuminov commented 6 years ago

@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

3073 commented 6 years ago

I said not working

On Thu, Jul 5, 2018 at 6:44 PM, Azam notifications@github.com 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 commented 6 years ago

please do not repeat an answer

On Fri, Jul 6, 2018 at 3:04 AM, Amare Mahtsentu a.mahtsentu@gmail.com wrote:

I said not working

On Thu, Jul 5, 2018 at 6:44 PM, Azam notifications@github.com 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 .