Function for installing the necessary python modules
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
)Returns no values or objects. Function is used for installing the necessary python libraries in a conda environment.
string Name of the environment where the packages should
be installed.
character determining which machine learning frameworks
should be installed. install="all" for 'pytorch' and 'tensorflow'.
install="pytorch" for 'pytorch', and install="tensorflow" for 'tensorflow'.
string determining the desired version of 'tensorflow'.
string determining the desired version of 'cuda' for
'PyTorch'.
string Python version to use.
bool If TRUE removes the environment completely before
recreating the environment and installing the packages. If FALSE the packages
are installed in the existing environment without any prior changes.
bool TRUE installs the cpu only version of the
machine learning frameworks.
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()