tensorflow-on-raspberry-pi
tensorflow-on-raspberry-pi copied to clipboard
Memory Error trying to install TensorFlow on Raspberry PI WH
###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
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.
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