| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent c8985b3 commit 81b116c
2 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -240,7 +240,8 @@ RUN pip install scipy && \ | |||
| 240 | 240 | cd /usr/local/src && git clone git://github.com/nicolashennetier/pyeconometrics.git && \ | |
| 241 | 241 | cd pyeconometrics && python setup.py install && \ | |
| 242 | 242 | apt-get install -y graphviz && pip install graphviz && \ | |
| 243 | - apt-get install -y libgdal1-dev && GDAL_CONFIG=/usr/bin/gdal-config pip install fiona && pip install geopandas && \ | ||
| 243 | + apt-get install -y libgdal1-dev && GDAL_CONFIG=/usr/bin/gdal-config && \ | ||
| 244 | + pip install geopandas && \ | ||
| 244 | 245 | # Pandoc is a dependency of deap | |
| 245 | 246 | apt-get install -y pandoc && \ | |
| 246 | 247 | cd /usr/local/src && git clone git://github.com/scikit-learn-contrib/py-earth.git && \ | |
@@ -509,6 +510,10 @@ RUN pip install flashtext && \ | |||
| 509 | 510 | pip install pandasql && \ | |
| 510 | 511 | pip install trackml && \ | |
| 511 | 512 | cd /usr/local/src && git clone https://github.com/JohnLangford/vowpal_wabbit.git && ./vowpal_wabbit/python/conda_install.sh && \ | |
| 513 | + # Although fiona is installed as a dependency of geopandas (installed above), | ||
| 514 | + # importing geopandas led to an ImportError due to an error importing fiona. | ||
| 515 | + # Force installing fiona seems to fix the issue. | ||
| 516 | + pip install -I fiona && \ | ||
| 512 | 517 | ##### ^^^^ Add new contributions above here ^^^^ ##### | |
| 513 | 518 | # clean up pip cache | |
| 514 | 519 | rm -rf /root/.cache/pip/* | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -42,6 +42,9 @@ | |||
| 42 | 42 | import pandas as pd | |
| 43 | 43 | print("Pandas imported ok") | |
| 44 | 44 | ||
| 45 | + import geopandas as gpd | ||
| 46 | + print('Geopandas imported ok') | ||
| 47 | + | ||
| 45 | 48 | from sklearn import datasets | |
| 46 | 49 | print("sklearn imported ok") | |
| 47 | 50 | iris = datasets.load_iris() | |
| Back | FazBrowse Home | New Git URL |
0 commit comments