emodpy-malaria installation

Follow the steps below to install emodpy-malaria.

Note

Currently, an IDM VPN connection is required to run the example.

  1. Open a command prompt and create a virtual environment in any directory you choose. The command below names the environment “v-emodpy-malaria”, but you may use any desired name:

    python -m venv v-emodpy-malaria
    
  2. Activate the virtual environment:

    • Windows

    • Linux

    Enter the following:

    v-emodpy-malaria\Scripts\activate
    

    Enter the following:

    source v-emodpy-malaria/bin/activate
    
  3. Install emodpy-malaria packages:

    pip install emodpy_malaria
    

    If you are on Linux, also run:

    pip install keyrings.alt
    
  4. Open a command prompt and clone the emodpy-malaria GitHub repository to a local directory using the following command:

    git clone https://github.com/InstituteforDiseaseModeling/emodpy-malaria.git
    
  5. Verify installation by running the included Python example, example.py, located in /examples/start_here:

    python example.py
    

    Upon completion you can view the results in COMPS.

  6. When you are finished, deactivate the virtual environment by entering the following at a command prompt:

    deactivate