lhelontra / tensorflow-on-arm

TensorFlow for Arm
MIT License
1.05k stars 274 forks source link

CompileError: command 'arm-linux-gnueabihf-gcc' failed with exit status 4 #14

Closed EddieOne closed 6 years ago

EddieOne commented 6 years ago

I'm trying to install on Pi b3+ and getting an error. I tried to manually install grpcio but it didn't fix the problem. Here is the full error.

CompileError: command 'arm-linux-gnueabihf-gcc' failed with exit status 4

----------------------------------------
  Rolling back uninstall of grpcio
Cleaning up...
Command /usr/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip-build-KA5EiS/grpcio/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-Icbf3Z-record/install-record.txt --single-version-externally-managed --compile failed with error code 1 in /tmp/pip-build-KA5EiS/grpcio
lhelontra commented 6 years ago

Hi, I'm using in rpi3 and not got this error, but try install tensorflow whl file without dependencies: pip install <whl> --no-deps and resolves the others dependencies without grpcio after tensorflow installation. If you got another error, put here the full log.

EddieOne commented 6 years ago

I tried with --no-deps but it returned without error. I ended reinstalling raspbian and found some other JDK instructions where necessary to install the TF deps.

FuriosoJack commented 6 years ago

For those that have not worked at all you have to install these packages

sudo apt-get install libzbar-dev libzbar0

easyyu commented 4 years ago

For those that have not worked at all you have to install these packages

sudo apt-get install libzbar-dev libzbar0

Thank you..it solved my problem with instaling: pip install matpathlib