Install package dependencies nomopyomo branch PyPSA and gurobipy

Inelegant - installed by hand in solve_network.py.

Should replace with environment.yaml.
This commit is contained in:
Tom Brown 2019-12-19 11:38:43 +01:00
parent 105aeba215
commit c525e2a6ae
2 changed files with 15 additions and 2 deletions

View File

@ -36,6 +36,16 @@ Create a parallel directory for PyPSA-Eur-Sec with:
projects % git clone git@github.com:nworbmot/pypsa-eur-sec.git
```
## Package requirements
The requirements are the same as
[PyPSA-Eur](https://github.com/PyPSA/pypsa-eur), but for
`solve_network.py` in addition you need `gurobipy` and the `nomopyomo`
branch of PyPSA, which are currently imported "by hand" at the start
of the `solve_network.py` script. The `nomopyomo` branch will be
merged into the future PyPSA release 0.16.0.
## Data requirements
The data requirements include the JRC-IDEES-2015 database, JRC biomass

View File

@ -4,10 +4,13 @@ os.system("conda config --add channels http://conda.anaconda.org/gurobi")
os.system("conda install -y gurobi=8.1.0")
os.system("conda install -y git")
import sys
os.system("pip install -U git+git://github.com/PyPSA/pypsa.git@nomopyomo#egg=pypsa")
sys.path = ["pypsa"] + sys.path
#import sys
#sys.path = ["pypsa"] + sys.path