Commit 057be781 authored by gitanjali Thakur's avatar gitanjali Thakur
Browse files

Auto-saving for gitanjali.thakur on branch HEAD from commit ab172b32

parent ab172b32
Pipeline #31738 failed with stage
in 26 seconds
FROM renku/renkulab:renku0.10.2-py3.7-0.6.1
FROM renku/renkulab-py:3.7-renku0.10.3-0.6.2
# Uncomment and adapt if code is to be included in the image
# COPY src /code/src
......@@ -7,12 +7,21 @@ FROM renku/renkulab:renku0.10.2-py3.7-0.6.1
# e.g. the following installs apt-utils and vim; each pkg on its own line, all lines
# except for the last end with backslash '\' to continue the RUN line
#
# USER root
USER root
RUN apt-get update &&\
#apt-get install -y proj-bin libgdal-dev libproj-dev gdal-bin python3-gdal python3-dev python-dev
apt-get install -y binutils libproj-dev gdal-bin
ENV CPLUS_INCLUDE_PATH=/usr/include/gdal/
ENV C_INCLUDE_PATH=/usr/include/gdal/
# RUN apt-get update && \
# apt-get install -y --no-install-recommends \
# apt-utils \
# vim
# USER ${NB_USER}
USER ${NB_USER}
# install the python dependencies
COPY requirements.txt environment.yml /tmp/
......@@ -20,3 +29,5 @@ RUN conda env update -q -f /tmp/environment.yml && \
/opt/conda/bin/pip install -r /tmp/requirements.txt && \
conda clean -y --all && \
conda env export -n "root"
This diff is collapsed.
%% Cell type:code id: tags:
``` python
pip install -r requirements.txt
```
%%%% Output: stream
Collecting numpy
Using cached numpy-1.18.4-cp37-cp37m-manylinux1_x86_64.whl (20.2 MB)
Collecting pandas
Using cached pandas-1.0.3-cp37-cp37m-manylinux1_x86_64.whl (10.0 MB)
Collecting pytz>=2017.2
Downloading pytz-2020.1-py2.py3-none-any.whl (510 kB)
 |████████████████████████████████| 510 kB 2.9 MB/s eta 0:00:01
[?25hRequirement already satisfied: python-dateutil>=2.6.1 in /opt/conda/lib/python3.7/site-packages (from pandas->-r requirements.txt (line 2)) (2.8.1)
Requirement already satisfied: six>=1.5 in /opt/conda/lib/python3.7/site-packages (from python-dateutil>=2.6.1->pandas->-r requirements.txt (line 2)) (1.14.0)
Installing collected packages: numpy, pytz, pandas
Successfully installed numpy-1.18.4 pandas-1.0.3 pytz-2020.1
Note: you may need to restart the kernel to use updated packages.
%% Cell type:code id: tags:
``` python
import gdal
```
%%%% Output: error
---------------------------------------------------------------------------
ModuleNotFoundError Traceback (most recent call last)
<ipython-input-9-ee38efafc30b> in <module>
----> 1 import gdal
ModuleNotFoundError: No module named 'gdal'
%% Cell type:code id: tags:
``` python
```
%% Cell type:code id: tags:
``` python
pip install -r requirements.txt
```
%%%% Output: stream
ERROR: Could not open requirements file: [Errno 2] No such file or directory: 'requirements.txt'
Note: you may need to restart the kernel to use updated packages.
%% Cell type:code id: tags:
``` python
```
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment