FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Add theano, lasagne, nolearn, and more libs · anlthms/docker-python@7471944 · GitHub

Repository navigation

Commit 7471944

Browse files
Dan Becker
committed
Add theano, lasagne, nolearn, and more libs
1 parent 3b9b2ac commit 7471944

1 file changed

Lines changed: 16 additions & 3 deletions

File tree

‎Dockerfile‎

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,26 @@
11
FROM continuumio/anaconda3:latest
22

33
RUN conda install pip statsmodels seaborn python-dateutil nltk -y && \
4-
pip install pytagcloud pyyaml ggplot nolearn && \
4+
pip install pytagcloud pyyaml ggplot theano joblib husl && \
55
apt-get install -y libglib2.0-0 libxext6 libsm6 libxrender1 libfontconfig1 --fix-missing && \
66
apt-get update && apt-get install -y git && apt-get install -y build-essential && \
7+
#word cloud
8+
pip install git+git://github.com/amueller/word_cloud.git && \
9+
#xgboost
710
cd /usr/local/src && mkdir xgboost && cd xgboost && \
811
git clone https://github.com/dmlc/xgboost.git && cd xgboost && \
9-
make && cd wrapper && python setup.py install
10-
12+
make && cd wrapper && python setup.py install && \
13+
#lasagne
14+
cd /usr/local/src && mkdir Lasagne && cd Lasagne && \
15+
git clone https://github.com/Lasagne/Lasagne.git && cd Lasagne && \
16+
pip install -r requirements.txt && python setup.py install && \
17+
#nolearn
18+
cd /usr/local/src && mkdir nolearn && cd nolearn && \
19+
git clone https://github.com/dnouri/nolearn.git && cd nolearn && \
20+
python setup.py install && \
21+
# put theano compiledir inside /tmp (it needs to be in writable dir)
22+
printf "[global]\nbase_compiledir = /tmp/.theano\n" > /.theanorc
23+
1124
# set backend for matplotlibrc to Agg
1225
RUN matplotlibrc_path=$(python -c "import site, os, fileinput; packages_dir = site.getsitepackages()[0]; print(os.path.join(packages_dir, 'matplotlib', 'mpl-data', 'matplotlibrc'))") && \
1326
sed -i 's/^backend : Qt4Agg/backend : Agg/' $matplotlibrc_path

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL