Installs the SASPy
package and its dependencies within a
virtual Python environment.
Behavior was derived from tensorflow::install_tensorflow()
.
Arguments
- method
By default,
“auto”
automatically finds a method that will work in the local environment. Change the default to force a specific installation method.- conda
The path to a conda executable. Use
"auto"
to allow reticulate to automatically find an appropriate conda binary.- envname
The name, or full path, of the environment in which Python packages are to be installed.
- extra_packages
Additional packages to install.
- restart_session
Restart session?
- conda_python_version
Passed to conda (only applicable if
method = "conda"
)- ...
other arguments passed to
reticulate::conda_install()
orreticulate::virtualenv_install()
, depending on themethod
used.- pip_ignore_installed
Should pip ignore installed python packages and reinstall all already installed python packages?
- new_env
If
TRUE
, any existing Python virtual environment and/or conda environment specified byenvname
is deleted first.- python_version
Select the Python that will be used to create the virtualenv. Pass a string with version constraints like
"3.8"
, or">=3.9,<=3.11"
or a file path to apython
executable like"/path/to/bin/python3"
. The supplied value is passed on toreticulate::virtualenv_starter()
. Note thatSASPy
requires a Python version of at least >=3.4.