Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,8 @@ RUN pip install scipy && \
cd /usr/local/src && git clone git://github.com/nicolashennetier/pyeconometrics.git && \
cd pyeconometrics && python setup.py install && \
apt-get install -y graphviz && pip install graphviz && \
apt-get install -y libgdal1-dev && GDAL_CONFIG=/usr/bin/gdal-config pip install fiona && pip install geopandas && \
apt-get install -y libgdal1-dev && GDAL_CONFIG=/usr/bin/gdal-config && \
pip install geopandas && \
# Pandoc is a dependency of deap
apt-get install -y pandoc && \
cd /usr/local/src && git clone git://github.com/scikit-learn-contrib/py-earth.git && \
Expand Down Expand Up @@ -509,6 +510,10 @@ RUN pip install flashtext && \
pip install pandasql && \
pip install trackml && \
cd /usr/local/src && git clone https://github.com/JohnLangford/vowpal_wabbit.git && ./vowpal_wabbit/python/conda_install.sh && \
# Although fiona is installed as a dependency of geopandas (installed above),
# importing geopandas led to an ImportError due to an error importing fiona.
# Force installing fiona seems to fix the issue.
pip install -I fiona && \
##### ^^^^ Add new contributions above here ^^^^ #####
# clean up pip cache
rm -rf /root/.cache/pip/*
Expand Down
3 changes: 3 additions & 0 deletions test_build.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@
import pandas as pd
print("Pandas imported ok")

import geopandas as gpd
print('Geopandas imported ok')

from sklearn import datasets
print("sklearn imported ok")
iris = datasets.load_iris()
Expand Down