Skip to content

Latest commit

 

History

History
68 lines (46 loc) · 1.56 KB

gridcal_installation.md

File metadata and controls

68 lines (46 loc) · 1.56 KB

GridCal Installation with Miniconda

This installation provides a step-by-step guideline for the installation of the GridCal backend compatible with the power flow generation module of the trajectory generation toolbox. Since our examples are tested with Jupyter Notebooks, we do not recommend installing GridCal directly via pip (i.e., by pip install GridCal).

Note: the hash of the GridCal version compatible with this repository is 564ffd

  1. Install Miniconda

  2. Create a Miniconda environment to handle the GridCal Installation

  conda create -n <<env_name>> python=3.7
  1. Activate the environment.
  conda activate <<env_name>>
  1. Upgrade pip (optional)

On Windows:

  python -m pip install -U pip

On Linux/macOS:

  python install -U pip
  1. Clean cache
pip cache purge
  1. Download the GridCal release linked to the hash 564ffd. This can be done via git by
git clone https://github.com/SanPen/GridCal my_gridcal
cd my_gridcal
git reset --hard 564ffd
  1. Navigate to the src directory with a terminal (i.e., do cd src inside my_gridcal)

  2. (Important) Make sure your conda environment is activated. Execute the following command

  python -m pip install .

(Not recommended) To install GridCal in all environments, use the --user flag.

  1. Test your installation running
from GridCal.Engine import *

No errors should arise.

  1. (Optional) Install JupyterLab
  pip install jupyterlab