Interface to Python Virtual Environments
R functions for managing Python virtual environments.
virtualenv_create( envname = NULL, python = NULL, ..., version = NULL, packages = "numpy", module = getOption("reticulate.virtualenv.module"), system_site_packages = getOption("reticulate.virtualenv.system_site_packages", default = FALSE), pip_version = getOption("reticulate.virtualenv.pip_version", default = NULL), setuptools_version = getOption("reticulate.virtualenv.setuptools_version", default = NULL), extra = getOption("reticulat.evirtualenv.extra", default = NULL) ) virtualenv_install( envname = NULL, packages, ignore_installed = FALSE, pip_options = character(), ... ) virtualenv_remove(envname = NULL, packages = NULL, confirm = interactive()) virtualenv_list() virtualenv_root() virtualenv_python(envname = NULL) virtualenv_exists(envname = NULL)
envname |
The name of, or path to, a Python virtual environment. If
this name contains any slashes, the name will be interpreted as a path;
if the name does not contain slashes, it will be treated as a virtual
environment within |
python |
The path to a Python interpreter, to be used with the created
virtual environment. When |
... |
Optional arguments; currently ignored and reserved for future expansion. |
version |
The version of Python to be used with the newly-created
virtual environment. Python installations as installed via
|
packages |
A set of Python packages to install (via |
module |
The Python module to be used when creating the virtual
environment – typically, |
system_site_packages |
Boolean; create new virtual environments with
the |
pip_version |
The version of |
setuptools_version |
The version of |
extra |
An optional set of extra command line arguments to be passed.
Arguments should be quoted via |
ignore_installed |
Boolean; ignore previously-installed versions of the
requested packages? (This should normally be |
pip_options |
An optional character vector of additional command line
arguments to be passed to |
confirm |
Boolean; confirm before removing packages or virtual environments? |
Virtual environments are by default located at ~/.virtualenvs
(accessed
with the virtualenv_root
function). You can change the default location by
defining defining the WORKON_HOME
environment variable.
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.