How to apt install in spaces build
Hi everyone, When I was building my app I encountered an error about importing the gi package. after some research I found that I need to run “sudo apt install python3-gi”, but How can I do that in the build?
2023-02-19T15:12:37Z
That depends on how you’re building the app. Is it Docker?If Docker I believe you’d want to run something like this:RUN apt-get update -y && apt-get upgrade -y && apt-get install -y python3-gi
2023-02-20T00:41:09Z
hi@zinoubm, if you’re using Gradio or Streamlit SDKs, you can add to your Space repository the required packages on a file namedpackages.txtfor example,huggingface.coHandling Spaces DependenciesWe’re on a journey to advance and democratize artificial intelligence through open source and open science.Otherwise, if you’re a Docker SDK, you can follow@Omnibusand@iamrobotbeardirections.
2023-08-02T23:26:42Z
I am struggling mightily to add mssql driver. Apparently there isn’t a package for it that I can add to packages.txt, and I’m getting errors while trying to use the pyodbc package in my gradio app. Any ideas on what I could try?