This function creates a dedicated virtual environment and installs all required Python packages (numpy, scikit-learn, joblib, PyTorch). Run this once after installing the package. This is kept separate from model functions so that package installation never happens automatically during normal use.
Details
The function performs the following steps:
Finds a suitable Python installation (or uses
RETICULATE_PYTHONif set).Creates a virtual environment named
"epiworldRcalibrate".Installs
numpy,scikit-learn,joblib, andtorch(CPU version) into the virtual environment.Verifies all packages can be imported.