samjabrahams / tensorflow-on-raspberry-pi

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

Memory Error trying to install TensorFlow on Raspberry PI WH #164

Open jtquest opened 5 years ago

jtquest commented 5 years ago

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:

Memory Error

adeeb10abbas commented 3 years ago

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.

Palakshi123 commented 3 years ago

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