diff --git a/scripts/install_python.sh b/scripts/install_python.sh index 6816b089..e7953fa4 100755 --- a/scripts/install_python.sh +++ b/scripts/install_python.sh @@ -28,6 +28,10 @@ apt_install \ export VIRTUAL_ENV="${VIRTUAL_ENV:=/opt/venv}" export PATH="${VIRTUAL_ENV}/bin:${PATH}" +# Make sure that Rstudio sees these env vars too +echo "PATH=${PATH}" >>"${R_HOME}/etc/Renviron.site" +echo "VIRTUAL_ENV=${VIRTUAL_ENV}" >>"${R_HOME}/etc/Renviron.site" + python3 -m venv "${VIRTUAL_ENV}" # Upgrade version of pip inside the virtualenv