py_install: Install Python packages

Description Usage Arguments Details See Also

View source: R/install.R

Description

Install Python packages into a virtualenv or conda env.

Usage

1
2
py_install(packages, envname = "r-reticulate", method = c("auto",
  "virtualenv", "conda"), conda = "auto", ...)

Arguments

packages

Character vector with package names to install

envname

Name of environment to install packages into

method

Installation method. By default, "auto" automatically finds a method that will work in the local environment. Change the default to force a specific installation method. Note that the "virtualenv" method is not available on Windows.

conda

Path to conda executable (or "auto" to find conda using the PATH and other conventional install locations).

...

Additional arguments passed to conda_install() or virtualenv_install().

Details

On Linux and OS X the "virtualenv" method will be used by default ("conda" will be used if virtualenv isn't available). On Windows, the "conda" method is always used.

See Also

conda-tools, virtualenv-tools


Mormukut11/R-interface-to-Python documentation built on May 21, 2019, 9:36 a.m.