E: Unable to locate package cmake

Hi @Pavan_sai_Sheshetti, welcome to the Streamlit community!! :tada: :partying_face:

I’m sorry to hear you had issues with dlib. I tried installing it via pip but couldn’t get it to work. However, it appears to work using conda. Here are the steps you need to follow to successfully deploy your app:

  1. Delete your app from Streamlit Sharing

  2. Delete your requirements.txt file

  3. Create a packages.txt file to install the the apt-get dependencies for dlib. Your packages.txt should contain:

    build-essential
    libgtk-3-dev
    libboost-all-dev
    freeglut3-dev
    cmake
    libopenblas-dev
    
  4. To install Python packages with conda, create an environment.yml file containing the following:

     channels:
         - conda-forge
     dependencies:
         - dlib
         - numpy
         - scipy
         - opencv
         - face_recognition
    
  5. Deploy your app on Streamlit Sharing :rocket:

Once you follow all the :point_up: steps, your deployed app should look like this:

Feel free to copy the requirements.txt and environment.yml files from my fork of your repo. Let us know if this helps!

Happy Streamlit-ing! :balloon:
Snehan