A previously working version of Python virtual environment or shinyapps.io stopped working. It seems that it is because of automatic installation of the latest prerelease version of PIP package into the virtual environment and its incompatibility. My question is that how can I enforce virtual environment to use/ install a specific pip version? Here is the code:
reticulate::virtualenv_create(envname = "myreticulate",python = '/usr/bin/python3')
reticulate::virtualenv_install("myreticulate", packages = c( 'pathlib','pandas','requests'))
reticulate::use_virtualenv("myreticulate", required = TRUE)
Here is the Shinyappio log:
Using base prefix '/usr'
New python executable in \home\shiny.virtualenvs\myreticulate\bin\python3
Also creating executable in \home\shiny.virtualenvs\myreticulate\bin\python
Installing setuptools, pkg_resources, pip, wheel...done.
Requirement already up-to-date: wheel in \home\shiny.virtualenvs\myreticulate\lib\python3.5\site-packages (0.34.2)
Requirement already up-to-date: pip in \home\shiny.virtualenvs\myreticulate\lib\python3.5\site-packages (20.1b1)
: Requirement already up-to-date: setuptools in \home\shiny.virtualenvs\myreticulate\lib\python3.5\site-packages (46.1.3)
Using virtual environment 'myreticulate' ...
Error in value3L : invalid version specification ‘20.1b1