Installing necessary python modules to an environment
Source:R/install_and_config.R
install_py_modules.Rd
Function for installing the necessary python modules
Usage
install_py_modules(
envname = "aifeducation",
install = "pytorch",
tf_version = "2.15",
pytorch_cuda_version = "12.1",
python_version = "3.9",
remove_first = FALSE,
cpu_only = FALSE
)
Arguments
- envname
string
Name of the environment where the packages should be installed.- install
character
determining which machine learning frameworks should be installed.install="all"
for 'pytorch' and 'tensorflow'.install="pytorch"
for 'pytorch', andinstall="tensorflow"
for 'tensorflow'.- tf_version
string
determining the desired version of 'tensorflow'.- pytorch_cuda_version
string
determining the desired version of 'cuda' for 'PyTorch'.- python_version
string
Python version to use.- remove_first
bool
IfTRUE
removes the environment completely before recreating the environment and installing the packages. IfFALSE
the packages are installed in the existing environment without any prior changes.- cpu_only
bool
TRUE
installs the cpu only version of the machine learning frameworks.
Value
Returns no values or objects. Function is used for installing the necessary python libraries in a conda environment.
See also
Other Installation and Configuration:
AifeducationConfiguration
,
aifeducation_config
,
check_aif_py_modules()
,
set_config_cpu_only()
,
set_config_gpu_low_memory()
,
set_config_os_environ_logger()
,
set_config_tf_logger()
,
set_transformers_logger()