Install#

Follow the steps below to install emodpy-generic.

Prerequisites#

First, ensure the following prerequisites are met.

  • Windows 10 Pro or Enterprise, Linux, or Mac

  • Python 3.9 64-bit (https://www.python.org/downloads/release)

  • A file that indicates the pip index-url:

    • For Windows, in C:\Users\Username\pip\pip.ini add the following:

      [global]
      index-url = https://packages.idmod.org/api/pypi/pypi-production/simple
      
    • For Linux, in $HOME/.config/pip/pip.conf add the following:

      [global]
      index-url = https://packages.idmod.org/api/pypi/pypi-production/simple
      

Installation instructions#

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

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

    • For Windows, enter the following:

      v-emodpy-generic\Scripts\activate
      
    • For Linux, enter the following:

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

    pip install emodpy-generic
    

    If you are on Linux, also run:

    pip install keyrings.alt
    
  4. When you are finished, deactivate the virtual environment by entering the following at a command prompt:

    deactivate