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

Memory Error trying to install TensorFlow on Raspberry PI WH

Open jtquest opened this issue 6 years ago • 2 comments

###pip install tensorflow...

It runs through the entire process and goes right up to almost 100% and then crashes with multiple red lines and the last line says "Memory Error" - tried different versions, reimaged SD card and same error message

Raspberry PI WH - 8 GB SD Card/Python 3.5

Please provide the following information about your Raspberry Pi setup:

  • Raspberry Pi model: WH
  • Operating System used: Linux
  • Version of Python used: 3.5
  • SD card memory size: 8 GB
  • Size of USB/other device used as swap (if building from source):
  • TensorFlow git commit hash (if building from source): just install so far pip install tensorflow

###Memory Error

jtquest avatar Jun 13 '19 02:06 jtquest

Can you share the exact error? I am referring to those "red lines" you talk about. It would be helpful to see where exactly it fails.

adeeb10abbas avatar Mar 08 '21 15:03 adeeb10abbas

Hey,

This error is occurred because caching mechanism is trying to read entire file into memory before caching.

To solve this error, run the below code on terminal.

Sudo nano/etc/dphys.swapfile CONF_SWAPSIZE = 1024 #change size Sudo /etc/init.d/dphys.swapfile start Sudo /etc/init.d/dphys.swapfile stop

To install TensorFlow,

Sudo pip3 install tensorflow

Palakshi123 avatar Apr 11 '21 16:04 Palakshi123