virtualenv_create('pyDev',python = 'python3') virtualenv_install("pyDev", packages = c('gensim', 'pandas','numpy','nltk','paramiko')) reticulate::use_virtualenv("pyDev", required = TRUE)
However, when I publish the app, I got the following error:
Required version of Python '~/.virtualenvs/pyDev/bin/python' cannot be used because another version of Python ('/usr/bin/python') is already initialized for this process. Calls: local ... tryCatch -> tryCatchList -> tryCatchOne -> <Anonymous>
However, I can still open the published application, but it will "disconnect from server" whenever it tries to run python codes.
I checked the log and the app is actually still running on Python2.7. Anyone know how to resolve this? Thanks in advance, I appreciate your help.