Skip to content

Raspberry Pi Memory Error #159

Closed
Closed
@oguzhankarabulut

Description

@oguzhankarabulut
  • face_recognition version: 02.1
  • Python version: 2.7
  • Operating System: Raspian

Description

I installed to face_recognition my raspberry pi successfully for python 3. Now i am trying to install for Python2 because i need it. When i was trying install i am taking a Memory Error. I attached the images from my error. Please help me

20170821_190454
20170821_190501

Activity

ageitgey

ageitgey commented on Aug 22, 2017

@ageitgey
Owner

Check out the README here:

Issue: MemoryError when running pip2 install face_recognition

Solution: The face_recognition_models file is too big for your available pip cache memory. Instead, try pip2 --no-cache-dir install face_recognition to avoid the issue.

Palakshi123

Palakshi123 commented on Apr 13, 2021

@Palakshi123

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @ageitgey@oguzhankarabulut@Palakshi123

        Issue actions

          Raspberry Pi Memory Error · Issue #159 · ageitgey/face_recognition