Skip to content

Instantly share code, notes, and snippets.

@stuartlynn
Created March 8, 2017 15:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stuartlynn/1e39bae0f88262fe2948c99c2c35a4ed to your computer and use it in GitHub Desktop.
Save stuartlynn/1e39bae0f88262fe2948c99c2c35a4ed to your computer and use it in GitHub Desktop.
Stuarts Docker File
from kaggle/python
RUN apt-get install -yq libopenblas-dev libatlas-dev libblas-dev libglpk-dev glpk-utils liblapack-dev libsuitesparse-dev gsl-bin libgsl0-dev libfftw3-dev libblas-test libopenblas-base libopenblas-dev
RUN git clone https://github.com/cvxopt/cvxopt.git
RUN cd cvxopt
WORKDIR cvxopt
#RUN git clone https://github.com/torch/distro.git
#WORKDIR distro
#RUN bash install-deps
#RUN ./install.sh
#WORKDIR ../
RUN pip install pulp
#RUN pip install https://s3.amazonaws.com/pytorch/whl/torch-0.1.6.post17-cp35-cp35m-linux_x86_64.whl
#RUN pip install https://s3.amazonaws.com/pytorch/whl/torchvision-0.1.6-py3-none-any.whl
RUN CVXOPT_BUILD_FFTW=1 CVXOPT_BUILD_GLPK=1 CVXOPT_BUILD_GSL=1 python setup.py install --user
RUN pip uninstall -y pysal
RUN /usr/bin/yes | pip install git+https://github.com/stuartlynn/pysal.git@gwr
RUN pip install jupyterlab && jupyter serverextension enable --py jupyterlab --sys-prefix
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment