Quick Start
System requirements
With the low-resolution settings, PyPSA-China-PIK will run on a local machine or laptop. Solving a full year at hourly resolution will require a high performance cluster or server with around 50GB of RAM - depending on your settings.
Installation
-
Install the conda package manager
It may be possible to run the workflow with a better manager such as
uv
but it will not work out of the boxConda tips
Conda is a rather large install with a GUI and features not required by PyPSA-China. You may prefer to use the lighter miniconda, which is our recommendation.
You can check whether you already have conda with
which anaconda
orwhich conda
. Newer condas have a faster dependcy solver - as the package is rather large we strongly recommend you update tov> 2024.10
.Conda tips
Conda is a rather large install with a GUI and features not required by PyPSA-China. You may prefer to use the lighter miniconda, which is our recommendation
You can check whether you already have conda with
where anaconda
orwhere conda
. Newer condas have a faster dependcy solver - as the package is rather large we strongly recommend you update tov> 2024.9
. -
Setup the environment: This can take a long time
- Activate environment
- Fetch data herefore have to run data fetches
- Install a Solver: e.g. gurobi HiGHS or cplex. The current default configuration uses gurobi.
- Run locally