How to deploy an app if we are using dlib library,

Hello, I am trying to deploy an app in streamlit in this I have used dlib library
I have already replaced requirements.txt to conda.txt even then I am still facing an issue

Here is the link for the repo

What is the error message?
Btw, the correct opencv package name is opencv-python-headless

PackagesNotFoundError: The following packages are not available from current channels:

To search for alternate channels that may provide the conda package you're

`
looking for, navigate to

https://anaconda.org

and use the search bar at the top of the page.

This is the error i am getting and opencv-python-headless is one of the versions of opencv

I cloned your repo, cleaned it and tried it in local docker container runtime and on streamlit sharing. Seems to work now.
The main trick was to change dlib package to dlib-bin package.
Find the repo here and compare to your repo:

1 Like

Thank you it is working now

i have same issue, i was change dlib to dlib-bin in my requirement but still doesnt work for me, could u help me how to solve this issue? iโ€™m so thankful if u want help to solve my issue
Here is the link of repo
Github Repo

For me dlib-bin is working fine when using requirements.txt and not environment.yml