spacyr spacy_initialize() function error in shinyapps.io

I used spacyr package in my shinyapp, it works fine in my local machine but when I published in shinyapps.io and call the spacy_initialize() I got an error.
image

So far I tried to use use_python() function.

library(reticulate)
use_python("/usr/local/bin/python")
library(spacyr)
spacy_initialize()

The spaCy python library is not installed on the shinyapps.io server, try installing it with spacy_install()

library(reticulate)
use_python("/usr/local/bin/python")
library(spacyr)
spacy_install()
spacy_initialize()

Hi thanks for the reply. I tried to add spacy_install() but I got another error on conda. How to setup this with conda? Here's the error:

Unfortunately conda is not available at shinyapps.io and it seems like spacyr is meant to work within a conda environment.

You can try to manually install spaCy, its required packages and download a language model, but I'm not sure if this is going to work with spacyr, another option would by to directly use the python library through reticulate and bypass the spacyr wrapper.