Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jtquest opened this issue Jun 13, 2019 · 2 comments
Open

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

jtquest opened this issue Jun 13, 2019 · 2 comments

Comments

@jtquest
Copy link

jtquest commented Jun 13, 2019

###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

@adeeb10abbas
Copy link

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
Copy link

Palakshi123 commented Apr 11, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants