Back

[SOLVED] Can't install deepface library python

  • 1
  • Functions
  • Web
olildu
30 Jan, 2024, 20:07

I am trying to include a facial recognition handling but I can't get to install it using requirements.txt

Build Log is attached I cant paste it since it is long.

Any help would be much appreciated...

TL;DR
Title: [SOLVED] Issue installing deepface library in Python - The user is having trouble installing the deepface library in Python. - They asked if they can add specific commands to their Dockerfile. - The support suggests using an API from huggingface temporarily for facial recognition. - They mention that a Python ML runtime will be available soon. - The user experiences an error related to Numpy Alpine. - The support advises the user to search online for solutions regarding the alpine dependencies. - The user mentions they are new to this and requests guidance. - They apologize for being unable to provide the build log. Solution:
Steven
30 Jan, 2024, 20:10

Looks like it needs numpy but that needs extra OS level dependencies in Alpine. I think you can search online for how to solve that

olildu
30 Jan, 2024, 20:10

Very much new to this

olildu
30 Jan, 2024, 20:11

Could you guide me on what should i search

olildu
30 Jan, 2024, 20:11

I will try to find a way after that

Steven
30 Jan, 2024, 20:11

Numpy Alpine [error]

olildu
30 Jan, 2024, 20:11

Alright thanks

olildu
30 Jan, 2024, 20:17

FROM python:3.9-alpine

RUN apk add --no-cache
\ gcc
\ musl-dev
\ python3-dev
\ build-base
\ openblas-dev
\ freetype-dev
\ pkgconfig
\ gfortran

COPY requirements.txt /app/requirements.txt WORKDIR /app

RUN pip install --no-cache-dir -r requirements.txt

would i be able to add this to my dockerfile?

Christy Jacob
30 Jan, 2024, 20:19

Unfortunately we do not allow overriding the Dockerfile on Cloud.

But we have plans to introduce a machine learning runtime really soon. So you should be able to run it.

Currently if you would like to do facial recognition, I recommend using an API from huggingface or so. But I assure you, the Python ML runtime is going to be ready soon 👍

olildu
30 Jan, 2024, 20:19

Alright alright thanks for the help

Steven
30 Jan, 2024, 20:30

You can run the install commands as part of the build step

olildu
30 Jan, 2024, 20:34

[SOLVED] Can't install deepface library python

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more