About deploying a shiny app on shinyapps.io

I try to deploy a shiny app on shinyapps.io, but it has the error: no module named pandas I googled and I think it is because I have the packages locally but not on shinyapps.io web and I found a similar question with the solution by using py_install(c('pandas')) , so I try to add it in my server function but then I get another error: Error : could not find a Python environment for /usr/bin/python3 . How can I fix this problem. Thank you for any help