Use requirements.txt for installing pip packages
Signed-off-by: merspieler <merspieler@airmail.cc>
This commit is contained in:
parent
44c86a4388
commit
9a6cc1ece0
2 changed files with 7 additions and 11 deletions
13
create-venv
13
create-venv
|
@ -39,20 +39,11 @@ done
|
|||
|
||||
python3 -m venv venv/
|
||||
source venv/bin/activate
|
||||
pip install descartes matplotlib networkx numpy requests pillow pyproj scipy shapely psycopg2-binary
|
||||
pip install -r osm2city/requirements.txt
|
||||
if [ $? == 1 ]; then
|
||||
echo "pip had problems installing some packages"
|
||||
echo "Please make sure that all of the following packages are installed in the venv"
|
||||
echo "descartes"
|
||||
echo "matplotlib"
|
||||
echo "networkx"
|
||||
echo "numpy"
|
||||
echo "requests"
|
||||
echo "pillow"
|
||||
echo "pyproj"
|
||||
echo "scipy"
|
||||
echo "shapely"
|
||||
echo "psycopg2-binary"
|
||||
cat osm2city/requirements.txt
|
||||
echo "NOTE: use 'source venv/bin/activate' before you install the packages"
|
||||
exit 3
|
||||
fi
|
||||
|
|
|
@ -46,3 +46,8 @@ git pull --rebase
|
|||
echo "Updating osm2city-data..."
|
||||
cd ../osm2city-data
|
||||
git pull --rebase
|
||||
|
||||
echo "Updating venv..."
|
||||
cd ../
|
||||
source venv/bin/activate
|
||||
pip install -r osm2city/requirements.txt
|
||||
|
|
Loading…
Reference in a new issue