update instructions for python

This commit is contained in:
Ed Chalstrey 2022-04-01 16:45:58 +01:00
parent 6593f9d249
commit c1e51531f7
2 changed files with 27 additions and 1 deletions

View File

@ -128,6 +128,7 @@ export PGDATABASE=<colouringlondondb>
Extract the new MasterMap data (this step could take a while). Extract the new MasterMap data (this step could take a while).
```bash ```bash
cd ~/colouring-london
sudo ./extract_mastermap.sh /path/to/mastermap_dir sudo ./extract_mastermap.sh /path/to/mastermap_dir
``` ```
@ -142,3 +143,28 @@ Load all new building outlines. This step will only add geometries that are not
```bash ```bash
./load_geometries.sh /path/to/mastermap_dir ./load_geometries.sh /path/to/mastermap_dir
``` ```
Create a virtual environment for python in the `etl` folder of your repository. In the following example we have name the virtual environment *colouringlondon* but it can have any name.
```bash
pyvenv colouringlondon
```
Activate the virtual environment so we can install python packages into it.
```bash
source colouringlondon/bin/activate
```
Install python pip package manager and related tools.
```bash
pip install --upgrade pip
pip install --upgrade setuptools wheel
```
Install the required python packages.
```bash
pip install -r requirements.txt
```

View File

@ -5,4 +5,4 @@ psycopg2==2.7.5
shapely==1.7 shapely==1.7
retrying==1.3.3 retrying==1.3.3
requests==2.23.0 requests==2.23.0
convertbng==0.6.37 convertbng==0.6.25