🏠 Back Home | 📚 Publications | ✉️ Contact | 📝 Blog
Introduction
pandapower
is a powerful open-source library for static modeling of power systems.
Installation
This installation procedure assumes that conda
or mamba
are available in your operating system. Also, this procedure has been validated in Windows only.
- Open a new terminal (with administrator rights, if on Windows). Create a new Python environment (called
<env_name>
) with Python < 3.10. - Activate the created environment.
- Create a new plain text file called
requirements.txt
. Open the file and paste the contents below in the file. - Install the requirements in the file
requirements.txt
by navigating with a terminal to the folder where the text file was created and executing the following command: - Install
seaborn
andigraph
for plotting,pytest
for testing,tabulate
for pretty table printing, andmatpowercaseframes
to read cases from MATPOWER. - Install
pandapower
. The latest release version can be installed viapip
by: - (Optional) Install Jupyter Lab.
- Test your
pandapower
installation by running either of the following sample codes:
conda create -n %ENV_NAME python=3.10
mamba activate %ENV_NAME
Then, install numba
via mamba
.
mamba install numba==0.56.4
We require this particular version of numba
to avoid a compatibility bug.
The installation of numba
through pip
is discouraged since it depends on some C libraries that might not be compiled properly if installed otherwise. For more information, consult the numba documentation.
requirements.txt
pip install -r requirements.txt
pip install seaborn igraph pytest tabulate matpowercaseframes
pip install pandapower
pip install jupyterlab
If VSCode is the IDE of preference, install ipykernel
pip install ipykernel
The previous installation is also possible via conda
or mamba
.
mamba install ipykernel
2024 © Sergio A. Dorado-Rojas