reticulate fails to discover virtualenv on Debian/Ubuntu if `python-venv` not installed
Closed this issue · 0 comments
On Ubuntu/Debian, users typically have to run sudo apt install python3-venv
before virtualenv_create()
succeeds. The error message that is presented in this situation is helpful.
On systems where venv
is not installed, reticulate will try and discover virtualenv
as a fallback.
Ubuntu/Debian apt install python
installs python with a "fake" venv module, which reticulate discovers and uses in preference over virtualenv. Specifically, reticulate discovers it here, based on this check, which just checks python -c 'import venv'
for non-zero exit status.
Reticulate needs a more robust check there for seeing if the venv
is usable. And if not, then reticulate should continue the search and discover virtualenv
.
Related: mlverse/pysparklyr#11