A walkthrough for setting up the environment for NVIDIA-Modulus.
To create a virtual environment for NVIDIA-Modulus, navigate to your home directory or the directory where you manage virtual environments, and run:
python3 -m venv <your_virtualenv_name>
(optional) If you have an active Conda environment, deactivate it to avoid conflicts:
conda deactivate
Activate the newly created virtual environment:
source <your_virtualenv_name>/bin/activate
Ensure that the Modulus repository is located in the desired directory (preferably outside the virtual environment directory). To build NVIDIA-Modulus locally from source, follow these steps:
git clone [email protected]:NVIDIA/modulus.git && cd modulus
pip install --upgrade pip
pip install .
Before installing the required packages, ensure that pip
is up-to-date:
pip install --upgrade pip
Navigate to the base directory of this GitHub repository and install the required packages:
pip install -r requirements.txt
The requirements.txt
file will handle all necessary package versions.
For additional assistance, feel free to contact the repository maintainers.