1
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

AUTOSAR CountdownAdvent Calendar 2022

Day 16

dockerで機械学習(15) with anaconda(15)「Deep Learning Cookbook Practical Recipes to Get Started Quickly」Douwe Osinga 著

Last updated at Posted at 2018-10-14

1.すぐに利用したい方へ(as soon as)

「Deep Learning Cookbook Practical Recipes to Get Started Quickly」Douwe Osinga 著

lrg-2.jpg
http://shop.oreilly.com/product/0636920097471.do

docker

dockerを導入し、Windows, Macではdockerを起動しておいてください。
Windowsでは、BiosでIntel Virtualizationをenableにしないとdockerが起動しない場合があります。
また、セキュリティの警告などが出ることがあります。

docker pull and run

$ docker pull kaizenjapan/anaconda-douwe

$ docker run -it -p 8888:8888 kaizenjapan/anaconda-douwe /bin/bash

以下のshell sessionでは
(base) root@f19e2f06eabb:/#は入力促進記号(comman prompt)です。実際には数字の部分が違うかもしれません。この行の#の右側を入力してください。
それ以外の行は出力です。出力にエラー、違いがあれば、コメント欄などでご連絡くださると幸いです。
それぞれの章のフォルダに移動します。

dockerの中と、dockerを起動したOSのシェルとが表示が似ている場合には、どちらで捜査しているか間違えることがあります。dockerの入力促進記号(comman prompt)に気をつけてください。

ファイル共有または複写

dockerとdockerを起動したOSでは、ファイル共有をするか、ファイル複写するかして、生成したファイルをブラウザ等表示させてください。参考文献欄にやり方のURLを記載しています。

複写の場合は、dockerを起動したOS側コマンドを実行しました。お使いのdockerの番号で置き換えてください。複写したファイルをブラウザで表示し内容確認しました。

(base) root@a64ea3c3dcfa:/# ls
bin   deep_learning_cookbook  etc			home				lib    media  opt   root  sbin	sys  usr
boot  dev		      feature-engineering-book	introduction_to_ml_with_python	lib64  mnt    proc  run   srv	tmp  var
(base) root@a64ea3c3dcfa:/# cd deep_learning_cookbook/
(base) root@a64ea3c3dcfa:/deep_learning_cookbook# ls
03.1 Using pre trained word embeddings.ipynb				 14.2 Icon Autoencoding.ipynb
03.2 Domain specific ranking using word2vec cosine distance.ipynb	 14.2 Variational Autoencoder Icons.ipynb
04.1 Collect movie data from Wikipedia.ipynb				 14.3 Icon GAN.ipynb
04.2 Build a recommender system based on outgoing Wikipedia links.ipynb  14.4 Icon RNN.ipynb
05.1 Generating Text in the Style of an Example Text.ipynb		 15.1 Song Classification.ipynb
06.1 Question matching.ipynb						 15.2 Index Local MP3s.ipynb
07.1 Text Classification.ipynb						 15.3 Spotify Playlists.ipynb
07.2 Emoji Suggestions.ipynb						 15.4 Train a music recommender.ipynb
07.3 Tweet Embeddings.ipynb						 16.1 Productionize Embeddings.ipynb
08.1 Sequence to sequence mapping.ipynb					 16.2 Prepare Keras model for Tensorflow Serving.ipynb
08.2 Import Gutenberg.ipynb						 16.3 Prepare model for iOS.ipynb
08.3 Subword tokenizing.ipynb						 16.4 Simple Text Generation.ipynb
09.1 Reusing a pretrained image recognition network.ipynb		 LICENSE
09.2 Images as embeddings.ipynb						 Simple Seq2Seq.ipynb
09.3 Retraining.ipynb							 data
10.1 Building an inverse image search service.ipynb			 export_keras_to_tensor_flow_serving.py
11.1 Detecting Multiple Images.ipynb					 keras_server.py
12.1 Activation Optimization.ipynb					 nb_utils.py
12.2 Neural Style.ipynb							 requirements.in
13.1 Quick Draw Cat Autoencoder.ipynb					 requirements.txt
13.2 Variational Autoencoder.ipynb					 seq2seq_server.py
13.5 Quick Draw Autoencoder.ipynb					 simple_server.py
14.1 Importing icons.ipynb						 style_transfer

jupyter notebook

(base) root@a64ea3c3dcfa:/deep_learning_cookbook# jupyter notebook --ip=0.0.0.0 --allow-root
[I 05:20:11.594 NotebookApp] JupyterLab extension loaded from /opt/conda/lib/python3.7/site-packages/jupyterlab
[I 05:20:11.594 NotebookApp] JupyterLab application directory is /opt/conda/share/jupyter/lab
[I 05:20:11.601 NotebookApp] Serving notebooks from local directory: /deep_learning_cookbook
[I 05:20:11.601 NotebookApp] The Jupyter Notebook is running at:
[I 05:20:11.602 NotebookApp] http://(a64ea3c3dcfa or 127.0.0.1):8888/?token=99fd224a888bbecfa9008ad004e080e3558e4bf0f403180f
[I 05:20:11.602 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[W 05:20:11.604 NotebookApp] No web browser found: could not locate runnable browser.
[C 05:20:11.605 NotebookApp] 
    
    Copy/paste this URL into your browser when you connect for the first time,
    to login with a token:
        http://(a64ea3c3dcfa or 127.0.0.1):8888/?token=99fd224a888bbecfa9008ad004e080e3558e4bf0f403180f
[I 05:20:25.458 NotebookApp] 302 GET / (172.17.0.1) 0.60ms
[W 05:20:48.888 NotebookApp] Notebook 03.1 Using pre trained word embeddings.ipynb is not trusted
[I 05:20:49.598 NotebookApp] Kernel started: ccb9f1e0-a0c2-44e2-8f93-500f10525b38
[I 05:20:50.160 NotebookApp] Adapting to protocol v5.1 for kernel ccb9f1e0-a0c2-44e2-8f93-500f10525b38
[I 05:22:50.127 NotebookApp] Saving file at /03.1 Using pre trained word embeddings.ipynb
[W 05:22:50.128 NotebookApp] Notebook 03.1 Using pre trained word embeddings.ipynb is not trusted

jupy0301.png

2. dockerを自力で構築する方へ

ここから下は、上記のpullしていただいたdockerをどういう方針で、どういう手順で作ったかを記録します。
上記のdockerを利用する上での参考資料です。本の続きを実行する上では必要ありません。
自力でdocker/anacondaを構築する場合の手順になります。
dockerfileを作る方法ではありません。ごめんなさい。

docker

ubuntu, debianなどのLinuxを、linux, windows, mac osから共通に利用できる仕組み。
利用するOSの設定を変更せずに利用できるのがよい。
同じ仕様で、大量の人が利用することができる。
ソフトウェアの開発元が公式に対応しているものと、利用者が便利に仕立てたものの両方が利用可能である。今回は、公式に配布しているものを、自分で仕立てて、他の人にも利用できるようにする。

python

DeepLearningの実習をPhthonで行って来た。
pythonを使う理由は、多くの機械学習の仕組みがpythonで利用できることと、Rなどの統計解析の仕組みもpythonから容易に利用できることがある。

anaconda

pythonには、2と3という版の違いと、配布方法の違いなどがある。
Anacondaでpython3をこの1年半利用してきた。
Anacondaを利用した理由は、統計解析のライブラリと、JupyterNotebookが初めから入っているからである。

docker公式配布

ubuntu, debianなどのOSの公式配布,gcc, anacondaなどの言語の公式配布などがある。
これらを利用し、docker-hubに登録することにより、公式配布の質の確認と、変更権を含む幅広い情報の共有ができる。dockerが公式配布するものではなく、それぞれのソフト提供者の公式配布という意味。

docker pull

docker公式配布の利用は、URLからpullすることで実現する。
###docker Anaconda

anacondaが公式配布しているものを利用。

$  docker pull continuumio/anaconda3
Using default tag: latest
latest: Pulling from continuumio/anaconda3
Digest: sha256:e07b9ca98ac1eeb1179dbf0e0bbcebd87701f8654878d6d8ce164d71746964d1
Status: Image is up to date for continuumio/anaconda3:latest
OgawaKiyoshi-no-MacBook-Pro:docker-toppers ogawakiyoshi$ docker run -it continuumio/anaconda3 /bin/bash

実際にはjupyter notebookを利用していた他のpushをpull

apt

(base) root@f19e2f06eabb:/# apt update

(base) root@f19e2f06eabb:/# apt install -y procps

(base) root@f19e2f06eabb:/# apt install -y vim

(base) root@f19e2f06eabb:/# apt install -y apt-utils

ソース git

(base) root@f19e2f06eabb:/# git clone https://github.com/DOsinga/deep_learning_cookbook

pip

(base) root@f19e2f06eabb:/deep-learning-from-scratch-2/ch01# pip install --upgrade pip
Collecting pip
  Downloading https://files.pythonhosted.org/packages/5f/25/e52d3f31441505a5f3af41213346e5b6c221c9e086a166f3703d2ddaf940/pip-18.0-py2.py3-none-any.whl (1.3MB)
    100% |████████████████████████████████| 1.3MB 2.0MB/s 
distributed 1.21.8 requires msgpack, which is not installed.
Installing collected packages: pip
  Found existing installation: pip 10.0.1
    Uninstalling pip-10.0.1:
      Successfully uninstalled pip-10.0.1
Successfully installed pip-18.0

便利 sh

(base) root@502e93a537bc:/deeplearning# vi py.sh
py.sh
#!/bin/bash
for f in *.py
  do
    python $f
  done

実行権を付与して実行。

(base) root@502e93a537bc:/deeplearning# chmod +x py.sh
(base) root@502e93a537bc:/deeplearning#  ./py.sh

横道

他の本のdockerから始めるのも手かも。

$ docker pull kaizenjapan/anaconda-keras

$ docker run -it -p 8888:8888 -p 6006:6006 kaizenjapan/anaconda-keras /bin/bash

困りごと

(base) root@a64ea3c3dcfa:/deep_learning_cookbook# pip install -r requirements.txt
Collecting args==0.1.0 (from -r requirements.txt (line 7))
  Downloading https://files.pythonhosted.org/packages/e5/1c/b701b3f4bd8d3667df8342f311b3efaeab86078a840fb826bd204118cc6b/args-0.1.0.tar.gz
Collecting audioread==2.1.5 (from -r requirements.txt (line 8))
  Downloading https://files.pythonhosted.org/packages/21/81/d6dfb88379ab03d7f385c5a2e5ed045af0959418c38ce7cc4efc0fba0da2/audioread-2.1.5.tar.gz
Collecting backports.csv==1.0.5 (from -r requirements.txt (line 9))
  Downloading https://files.pythonhosted.org/packages/23/01/0b1fce3fd8199fe32338dc66747baad52c7183b7f587128bc77cefde0620/backports.csv-1.0.5-py2.py3-none-any.whl
Collecting beautifulsoup4==4.6.0 (from -r requirements.txt (line 10))
  Downloading https://files.pythonhosted.org/packages/9e/d4/10f46e5cfac773e22707237bfcd51bbffeaf0a576b0a847ec7ab15bd7ace/beautifulsoup4-4.6.0-py3-none-any.whl (86kB)
    100% |████████████████████████████████| 92kB 3.3MB/s 
Collecting bleach==1.5.0 (from -r requirements.txt (line 11))
  Downloading https://files.pythonhosted.org/packages/33/70/86c5fec937ea4964184d4d6c4f0b9551564f821e1c3575907639036d9b90/bleach-1.5.0-py2.py3-none-any.whl
Collecting boto3==1.5.9 (from -r requirements.txt (line 12))
  Downloading https://files.pythonhosted.org/packages/1b/ae/0971dbeb724cc7e89ffb1f56c478294201f19578764a8f145419d01f3502/boto3-1.5.9-py2.py3-none-any.whl (128kB)
    100% |████████████████████████████████| 133kB 4.7MB/s 
Collecting boto==2.48.0 (from -r requirements.txt (line 13))
  Downloading https://files.pythonhosted.org/packages/bd/b7/a88a67002b1185ed9a8e8a6ef15266728c2361fcb4f1d02ea331e4c7741d/boto-2.48.0-py2.py3-none-any.whl (1.4MB)
    100% |████████████████████████████████| 1.4MB 7.5MB/s 
Collecting botocore==1.8.23 (from -r requirements.txt (line 14))
  Downloading https://files.pythonhosted.org/packages/19/1c/c0ba393d5a4efdb5f65d5bc053a3543f86b2e02119a8cd74b12845cc3ef9/botocore-1.8.23-py2.py3-none-any.whl (4.0MB)
    100% |████████████████████████████████| 4.0MB 4.7MB/s 
Collecting bs4==0.0.1 (from -r requirements.txt (line 15))
  Downloading https://files.pythonhosted.org/packages/10/ed/7e8b97591f6f456174139ec089c769f89a94a1a4025fe967691de971f314/bs4-0.0.1.tar.gz
Collecting bz2file==0.98 (from -r requirements.txt (line 16))
  Downloading https://files.pythonhosted.org/packages/61/39/122222b5e85cd41c391b68a99ee296584b2a2d1d233e7ee32b4532384f2d/bz2file-0.98.tar.gz
Collecting certifi==2017.11.5 (from -r requirements.txt (line 17))
  Downloading https://files.pythonhosted.org/packages/29/9b/25ef61e948321296f029f53c9f67cc2b54e224db509eb67ce17e0df6044a/certifi-2017.11.5-py2.py3-none-any.whl (330kB)
    100% |████████████████████████████████| 337kB 6.9MB/s 
Requirement already satisfied: chardet==3.0.4 in /opt/conda/lib/python3.7/site-packages (from -r requirements.txt (line 18)) (3.0.4)
Collecting click-plugins==1.0.3 (from -r requirements.txt (line 19))
  Downloading https://files.pythonhosted.org/packages/77/05/da5c9e19457f20cadfe22c397cd3852577066066f63e40f2baa0831b1693/click-plugins-1.0.3.tar.gz
Requirement already satisfied: click==6.7 in /opt/conda/lib/python3.7/site-packages (from -r requirements.txt (line 20)) (6.7)
Collecting cligj==0.4.0 (from -r requirements.txt (line 21))
  Downloading https://files.pythonhosted.org/packages/fc/05/e8384e1f7c8689cd1b91818a24cc860077c73368fb285ba53fbd8556ec98/cligj-0.4.0-py3-none-any.whl
Collecting clint==0.5.1 (from -r requirements.txt (line 22))
  Downloading https://files.pythonhosted.org/packages/3d/b4/41ecb1516f1ba728f39ee7062b9dac1352d39823f513bb6f9e8aeb86e26d/clint-0.5.1.tar.gz
Requirement already satisfied: cycler==0.10.0 in /opt/conda/lib/python3.7/site-packages (from -r requirements.txt (line 23)) (0.10.0)
Collecting decorator==4.1.2 (from -r requirements.txt (line 24))
  Downloading https://files.pythonhosted.org/packages/a1/4e/c42167ba5c3192bed633726d39d7896cc55d4fa3ec4a1fb60cd3a53fc4c7/decorator-4.1.2-py2.py3-none-any.whl
Collecting descartes==1.1.0 (from -r requirements.txt (line 25))
  Downloading https://files.pythonhosted.org/packages/e5/b6/1ed2eb03989ae574584664985367ba70cd9cf8b32ee8cad0e8aaeac819f3/descartes-1.1.0-py3-none-any.whl
Collecting docopt==0.6.2 (from -r requirements.txt (line 26))
  Downloading https://files.pythonhosted.org/packages/a2/55/8f8cab2afd404cf578136ef2cc5dfb50baa1761b68c9da1fb1e4eed343c9/docopt-0.6.2.tar.gz
Requirement already satisfied: docutils==0.14 in /opt/conda/lib/python3.7/site-packages (from -r requirements.txt (line 27)) (0.14)
Requirement already satisfied: entrypoints==0.2.3 in /opt/conda/lib/python3.7/site-packages (from -r requirements.txt (line 28)) (0.2.3)
Collecting enum34==1.1.6 (from -r requirements.txt (line 29))
  Downloading https://files.pythonhosted.org/packages/af/42/cb9355df32c69b553e72a2e28daee25d1611d2c0d9c272aa1d34204205b2/enum34-1.1.6-py3-none-any.whl
Collecting fiona==1.7.11.post1 (from -r requirements.txt (line 30))
  Downloading https://files.pythonhosted.org/packages/67/5f/bb390a10c9c3722c69bef7df1e721c604a204106ac4398b534a2018e4901/Fiona-1.7.11.post1.tar.gz (718kB)
    100% |████████████████████████████████| 727kB 2.8MB/s 
Collecting flickrapi==2.4.0 (from -r requirements.txt (line 31))
  Downloading https://files.pythonhosted.org/packages/76/d7/291b7f0f02cf0f59460f7bcc15192905b4c61e13b9fb9263ee86b0a5f647/flickrapi-2.4.0-py2.py3-none-any.whl
Collecting gensim==3.2.0 (from -r requirements.txt (line 32))
  Downloading https://files.pythonhosted.org/packages/9f/7e/f8c34a1291edde755c881cb960deff6785d0b7f8eefa6d1583ef4f3abb14/gensim-3.2.0.tar.gz (15.3MB)
    100% |████████████████████████████████| 15.3MB 2.4MB/s 
Collecting geopandas==0.3.0 (from -r requirements.txt (line 33))
  Downloading https://files.pythonhosted.org/packages/0a/0e/8ae74743ed7915ddb7d70cc8dfa8fc0b9b9cc81205c6e288a01915a46192/geopandas-0.3.0-py2.py3-none-any.whl (888kB)
    100% |████████████████████████████████| 890kB 14.4MB/s 
Requirement already satisfied: h5py==2.8.0 in /opt/conda/lib/python3.7/site-packages (from -r requirements.txt (line 34)) (2.8.0)
Collecting html5lib==0.9999999 (from -r requirements.txt (line 35))
  Downloading https://files.pythonhosted.org/packages/ae/ae/bcb60402c60932b32dfaf19bb53870b29eda2cd17551ba5639219fb5ebf9/html5lib-0.9999999.tar.gz (889kB)
    100% |████████████████████████████████| 890kB 7.9MB/s 
Collecting idna==2.6 (from -r requirements.txt (line 36))
  Downloading https://files.pythonhosted.org/packages/27/cc/6dd9a3869f15c2edfab863b992838277279ce92663d334df9ecf5106f5c6/idna-2.6-py2.py3-none-any.whl (56kB)
    100% |████████████████████████████████| 61kB 6.8MB/s 
Requirement already satisfied: imageio==2.4.1 in /opt/conda/lib/python3.7/site-packages (from -r requirements.txt (line 37)) (2.4.1)
Collecting internetarchive==1.7.6 (from -r requirements.txt (line 38))
  Downloading https://files.pythonhosted.org/packages/9b/01/935985c82ff84880891ef079556c9a3f0afa6451b8645052d211b01576c3/internetarchive-1.7.6-py2.py3-none-any.whl (68kB)
    100% |████████████████████████████████| 71kB 9.5MB/s 
Collecting ipykernel==4.7.0 (from -r requirements.txt (line 39))
  Downloading https://files.pythonhosted.org/packages/91/41/285df5cec77b7762117825035bcb2b28267d2c446144990542aca62051a9/ipykernel-4.7.0-py3-none-any.whl (106kB)
    100% |████████████████████████████████| 112kB 7.6MB/s 
Requirement already satisfied: ipython-genutils==0.2.0 in /opt/conda/lib/python3.7/site-packages (from -r requirements.txt (line 40)) (0.2.0)
Collecting ipython==6.2.1 (from -r requirements.txt (line 41))
  Downloading https://files.pythonhosted.org/packages/e1/87/294b718125085559b56453be87d90777863173470167e5f1d5de20b9eea3/ipython-6.2.1-py3-none-any.whl (745kB)
    100% |████████████████████████████████| 747kB 3.2MB/s 
Collecting ipywidgets==7.1.0 (from -r requirements.txt (line 42))
  Downloading https://files.pythonhosted.org/packages/c3/32/23894afee84f813778e6420e2a76fbecb47a76344fb0d444bcc8cd455716/ipywidgets-7.1.0-py2.py3-none-any.whl (68kB)
    100% |████████████████████████████████| 71kB 11.1MB/s 
Collecting jedi==0.11.1 (from -r requirements.txt (line 43))
  Downloading https://files.pythonhosted.org/packages/50/ca/d71f5a427601c98eadabfd73104cacbec8cc230e8416158decf61a48b0c6/jedi-0.11.1-py2.py3-none-any.whl (250kB)
    100% |████████████████████████████████| 256kB 7.7MB/s 
Requirement already satisfied: jinja2==2.10 in /opt/conda/lib/python3.7/site-packages (from -r requirements.txt (line 44)) (2.10)
Collecting jmespath==0.9.3 (from -r requirements.txt (line 45))
  Downloading https://files.pythonhosted.org/packages/b7/31/05c8d001f7f87f0f07289a5fc0fc3832e9a57f2dbd4d3b0fee70e0d51365/jmespath-0.9.3-py2.py3-none-any.whl
Collecting joblib==0.11 (from -r requirements.txt (line 46))
  Downloading https://files.pythonhosted.org/packages/4f/51/870b2ec270fc29c5d89f85353da420606a9cb39fba4747127e7c7d7eb25d/joblib-0.11-py2.py3-none-any.whl (176kB)
    100% |████████████████████████████████| 184kB 10.0MB/s 
Collecting jsonpatch==1.21 (from -r requirements.txt (line 47))
  Downloading https://files.pythonhosted.org/packages/03/2b/79316cdaa736a0c7b2c7815f76883df3970cc66588453ae31f5472e934f9/jsonpatch-1.21-py2.py3-none-any.whl
Collecting jsonpointer==2.0 (from -r requirements.txt (line 48))
  Downloading https://files.pythonhosted.org/packages/18/b0/a80d29577c08eea401659254dfaed87f1af45272899e1812d7e01b679bc5/jsonpointer-2.0-py2.py3-none-any.whl
Requirement already satisfied: jsonschema==2.6.0 in /opt/conda/lib/python3.7/site-packages (from -r requirements.txt (line 49)) (2.6.0)
Collecting jupyter-client==5.2.1 (from -r requirements.txt (line 50))
  Downloading https://files.pythonhosted.org/packages/f1/07/2293ae32a7bca98f2462ff101b5597c1bd48fabba00299151651ecf09157/jupyter_client-5.2.1-py2.py3-none-any.whl (88kB)
    100% |████████████████████████████████| 92kB 7.9MB/s 
Requirement already satisfied: jupyter-console==5.2.0 in /opt/conda/lib/python3.7/site-packages (from -r requirements.txt (line 51)) (5.2.0)
Requirement already satisfied: jupyter-core==4.4.0 in /opt/conda/lib/python3.7/site-packages (from -r requirements.txt (line 52)) (4.4.0)
Requirement already satisfied: jupyter==1.0.0 in /opt/conda/lib/python3.7/site-packages (from -r requirements.txt (line 53)) (1.0.0)
Collecting keras==2.1.2 (from -r requirements.txt (line 54))
  Downloading https://files.pythonhosted.org/packages/68/89/58ee5f56a9c26957d97217db41780ebedca3154392cb903c3f8a08a52208/Keras-2.1.2-py2.py3-none-any.whl (304kB)
    100% |████████████████████████████████| 307kB 7.2MB/s 
Collecting librosa==0.6.0 (from -r requirements.txt (line 55))
  Downloading https://files.pythonhosted.org/packages/6b/f4/422bfbefd581f74354ef05176aa48558c548243c87e359d91512d4b65523/librosa-0.6.0.tar.gz (1.5MB)
    100% |████████████████████████████████| 1.5MB 12.7MB/s 
Collecting llvmlite==0.22.0 (from -r requirements.txt (line 56))
  Downloading https://files.pythonhosted.org/packages/b4/f4/ddc252b83257bbf3922e47c5042a2e28e68bd36146a932adda3010c48377/llvmlite-0.22.0.tar.gz (98kB)
    100% |████████████████████████████████| 102kB 10.5MB/s 
Collecting markdown==2.6.11 (from -r requirements.txt (line 57))
  Downloading https://files.pythonhosted.org/packages/6d/7d/488b90f470b96531a3f5788cf12a93332f543dbab13c423a5e7ce96a0493/Markdown-2.6.11-py2.py3-none-any.whl (78kB)
    100% |████████████████████████████████| 81kB 6.2MB/s 
Requirement already satisfied: markupsafe==1.0 in /opt/conda/lib/python3.7/site-packages (from -r requirements.txt (line 58)) (1.0)
Collecting matplotlib==2.1.1 (from -r requirements.txt (line 59))
  Downloading https://files.pythonhosted.org/packages/50/27/57ab73d1b094540dec1a01d2207613248d8106f3c3f40e8d86f02eb8d18b/matplotlib-2.1.1.tar.gz (36.1MB)
    100% |████████████████████████████████| 36.1MB 1.4MB/s 
    Complete output from command python setup.py egg_info:
    IMPORTANT WARNING:
        pkg-config is not installed.
        matplotlib may not be able to find some of its dependencies
    ============================================================================
    Edit setup.cfg to change the build options
    
    BUILDING MATPLOTLIB
                matplotlib: yes [2.1.1]
                    python: yes [3.7.0 (default, Jun 28 2018, 13:15:42)  [GCC
                            7.2.0]]
                  platform: yes [linux]
    
    REQUIRED DEPENDENCIES AND EXTENSIONS
                     numpy: yes [version 1.15.1]
                       six: yes [using six version 1.11.0]
                  dateutil: yes [using dateutil version 2.7.3]
    backports.functools_lru_cache: yes [Not required]
              subprocess32: yes [Not required]
                      pytz: yes [using pytz version 2018.5]
                    cycler: yes [using cycler version 0.10.0]
                   tornado: yes [using tornado version 5.1]
                 pyparsing: yes [using pyparsing version 2.2.0]
                    libagg: yes [pkg-config information for 'libagg' could not
                            be found. Using local copy.]
                  freetype: no  [The C/C++ header for freetype2 (ft2build.h)
                            could not be found.  You may need to install the
                            development package.]
                       png: yes [version 1.6.34]
                     qhull: yes [pkg-config information for 'libqhull' could not
                            be found. Using local copy.]
    
    OPTIONAL SUBPACKAGES
               sample_data: yes [installing]
                  toolkits: yes [installing]
                     tests: no  [skipping due to configuration]
            toolkits_tests: no  [skipping due to configuration]
    
    OPTIONAL BACKEND EXTENSIONS
                    macosx: no  [Mac OS-X only]
                    qt5agg: yes [installing, Qt: 5.9.6, PyQt: 5.9.6; PySide2 not
                            found]
                    qt4agg: no  [PySide not found; PyQt4 not found]
                   gtk3agg: no  [Requires pygobject to be installed.]
                 gtk3cairo: no  [Requires cairocffi or pycairo to be installed.]
                    gtkagg: no  [Requires pygtk]
                     tkagg: yes [installing; run-time loading from Python Tcl /
                            Tk]
                     wxagg: no  [requires wxPython]
                       gtk: no  [Requires pygtk]
                       agg: yes [installing]
                     cairo: no  [cairocffi or pycairo not found]
                 windowing: no  [Microsoft Windows only]
    
    OPTIONAL LATEX DEPENDENCIES
                    dvipng: no
               ghostscript: no
                     latex: no
                   pdftops: no
    
    OPTIONAL PACKAGE DATA
                      dlls: no  [skipping due to configuration]
    
    ============================================================================
                            * The following required packages can not be built:
                            * freetype * Try installing freetype with `apt-get
                            * install libfreetype6-dev`
    
    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-ir1r0wzh/matplotlib/
You are using pip version 10.0.1, however version 18.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
(base) root@a64ea3c3dcfa:/deep_learning_cookbook# pip install --upgrade pip
Collecting pip
  Downloading https://files.pythonhosted.org/packages/c2/d7/90f34cb0d83a6c5631cf71dfe64cc1054598c843a92b400e55675cc2ac37/pip-18.1-py2.py3-none-any.whl (1.3MB)
    100% |████████████████████████████████| 1.3MB 12.3MB/s 
twisted 18.7.0 requires PyHamcrest>=1.9.0, which is not installed.
Installing collected packages: pip
  Found existing installation: pip 10.0.1
    Uninstalling pip-10.0.1:
      Successfully uninstalled pip-10.0.1
Successfully installed pip-18.1
(base) root@a64ea3c3dcfa:/deep_learning_cookbook# pip install -r requirements.txt
Collecting args==0.1.0 (from -r requirements.txt (line 7))
  Using cached https://files.pythonhosted.org/packages/e5/1c/b701b3f4bd8d3667df8342f311b3efaeab86078a840fb826bd204118cc6b/args-0.1.0.tar.gz
Collecting audioread==2.1.5 (from -r requirements.txt (line 8))
  Using cached https://files.pythonhosted.org/packages/21/81/d6dfb88379ab03d7f385c5a2e5ed045af0959418c38ce7cc4efc0fba0da2/audioread-2.1.5.tar.gz
Collecting backports.csv==1.0.5 (from -r requirements.txt (line 9))
  Using cached https://files.pythonhosted.org/packages/23/01/0b1fce3fd8199fe32338dc66747baad52c7183b7f587128bc77cefde0620/backports.csv-1.0.5-py2.py3-none-any.whl
Collecting beautifulsoup4==4.6.0 (from -r requirements.txt (line 10))
  Using cached https://files.pythonhosted.org/packages/9e/d4/10f46e5cfac773e22707237bfcd51bbffeaf0a576b0a847ec7ab15bd7ace/beautifulsoup4-4.6.0-py3-none-any.whl
Collecting bleach==1.5.0 (from -r requirements.txt (line 11))
  Using cached https://files.pythonhosted.org/packages/33/70/86c5fec937ea4964184d4d6c4f0b9551564f821e1c3575907639036d9b90/bleach-1.5.0-py2.py3-none-any.whl
Collecting boto3==1.5.9 (from -r requirements.txt (line 12))
  Using cached https://files.pythonhosted.org/packages/1b/ae/0971dbeb724cc7e89ffb1f56c478294201f19578764a8f145419d01f3502/boto3-1.5.9-py2.py3-none-any.whl
Collecting boto==2.48.0 (from -r requirements.txt (line 13))
  Using cached https://files.pythonhosted.org/packages/bd/b7/a88a67002b1185ed9a8e8a6ef15266728c2361fcb4f1d02ea331e4c7741d/boto-2.48.0-py2.py3-none-any.whl
Collecting botocore==1.8.23 (from -r requirements.txt (line 14))
  Using cached https://files.pythonhosted.org/packages/19/1c/c0ba393d5a4efdb5f65d5bc053a3543f86b2e02119a8cd74b12845cc3ef9/botocore-1.8.23-py2.py3-none-any.whl
Collecting bs4==0.0.1 (from -r requirements.txt (line 15))
  Using cached https://files.pythonhosted.org/packages/10/ed/7e8b97591f6f456174139ec089c769f89a94a1a4025fe967691de971f314/bs4-0.0.1.tar.gz
Collecting bz2file==0.98 (from -r requirements.txt (line 16))
  Using cached https://files.pythonhosted.org/packages/61/39/122222b5e85cd41c391b68a99ee296584b2a2d1d233e7ee32b4532384f2d/bz2file-0.98.tar.gz
Collecting certifi==2017.11.5 (from -r requirements.txt (line 17))
  Using cached https://files.pythonhosted.org/packages/29/9b/25ef61e948321296f029f53c9f67cc2b54e224db509eb67ce17e0df6044a/certifi-2017.11.5-py2.py3-none-any.whl
Requirement already satisfied: chardet==3.0.4 in /opt/conda/lib/python3.7/site-packages (from -r requirements.txt (line 18)) (3.0.4)
Collecting click-plugins==1.0.3 (from -r requirements.txt (line 19))
  Using cached https://files.pythonhosted.org/packages/77/05/da5c9e19457f20cadfe22c397cd3852577066066f63e40f2baa0831b1693/click-plugins-1.0.3.tar.gz
Requirement already satisfied: click==6.7 in /opt/conda/lib/python3.7/site-packages (from -r requirements.txt (line 20)) (6.7)
Collecting cligj==0.4.0 (from -r requirements.txt (line 21))
  Using cached https://files.pythonhosted.org/packages/fc/05/e8384e1f7c8689cd1b91818a24cc860077c73368fb285ba53fbd8556ec98/cligj-0.4.0-py3-none-any.whl
Collecting clint==0.5.1 (from -r requirements.txt (line 22))
  Using cached https://files.pythonhosted.org/packages/3d/b4/41ecb1516f1ba728f39ee7062b9dac1352d39823f513bb6f9e8aeb86e26d/clint-0.5.1.tar.gz
Requirement already satisfied: cycler==0.10.0 in /opt/conda/lib/python3.7/site-packages (from -r requirements.txt (line 23)) (0.10.0)
Collecting decorator==4.1.2 (from -r requirements.txt (line 24))
  Using cached https://files.pythonhosted.org/packages/a1/4e/c42167ba5c3192bed633726d39d7896cc55d4fa3ec4a1fb60cd3a53fc4c7/decorator-4.1.2-py2.py3-none-any.whl
Collecting descartes==1.1.0 (from -r requirements.txt (line 25))
  Using cached https://files.pythonhosted.org/packages/e5/b6/1ed2eb03989ae574584664985367ba70cd9cf8b32ee8cad0e8aaeac819f3/descartes-1.1.0-py3-none-any.whl
Collecting docopt==0.6.2 (from -r requirements.txt (line 26))
  Using cached https://files.pythonhosted.org/packages/a2/55/8f8cab2afd404cf578136ef2cc5dfb50baa1761b68c9da1fb1e4eed343c9/docopt-0.6.2.tar.gz
Requirement already satisfied: docutils==0.14 in /opt/conda/lib/python3.7/site-packages (from -r requirements.txt (line 27)) (0.14)
Requirement already satisfied: entrypoints==0.2.3 in /opt/conda/lib/python3.7/site-packages (from -r requirements.txt (line 28)) (0.2.3)
Collecting enum34==1.1.6 (from -r requirements.txt (line 29))
  Using cached https://files.pythonhosted.org/packages/af/42/cb9355df32c69b553e72a2e28daee25d1611d2c0d9c272aa1d34204205b2/enum34-1.1.6-py3-none-any.whl
Collecting fiona==1.7.11.post1 (from -r requirements.txt (line 30))
  Using cached https://files.pythonhosted.org/packages/67/5f/bb390a10c9c3722c69bef7df1e721c604a204106ac4398b534a2018e4901/Fiona-1.7.11.post1.tar.gz
Collecting flickrapi==2.4.0 (from -r requirements.txt (line 31))
  Using cached https://files.pythonhosted.org/packages/76/d7/291b7f0f02cf0f59460f7bcc15192905b4c61e13b9fb9263ee86b0a5f647/flickrapi-2.4.0-py2.py3-none-any.whl
Collecting gensim==3.2.0 (from -r requirements.txt (line 32))
  Using cached https://files.pythonhosted.org/packages/9f/7e/f8c34a1291edde755c881cb960deff6785d0b7f8eefa6d1583ef4f3abb14/gensim-3.2.0.tar.gz
Collecting geopandas==0.3.0 (from -r requirements.txt (line 33))
  Using cached https://files.pythonhosted.org/packages/0a/0e/8ae74743ed7915ddb7d70cc8dfa8fc0b9b9cc81205c6e288a01915a46192/geopandas-0.3.0-py2.py3-none-any.whl
Requirement already satisfied: h5py==2.8.0 in /opt/conda/lib/python3.7/site-packages (from -r requirements.txt (line 34)) (2.8.0)
Collecting html5lib==0.9999999 (from -r requirements.txt (line 35))
  Using cached https://files.pythonhosted.org/packages/ae/ae/bcb60402c60932b32dfaf19bb53870b29eda2cd17551ba5639219fb5ebf9/html5lib-0.9999999.tar.gz
Collecting idna==2.6 (from -r requirements.txt (line 36))
  Using cached https://files.pythonhosted.org/packages/27/cc/6dd9a3869f15c2edfab863b992838277279ce92663d334df9ecf5106f5c6/idna-2.6-py2.py3-none-any.whl
Requirement already satisfied: imageio==2.4.1 in /opt/conda/lib/python3.7/site-packages (from -r requirements.txt (line 37)) (2.4.1)
Collecting internetarchive==1.7.6 (from -r requirements.txt (line 38))
  Using cached https://files.pythonhosted.org/packages/9b/01/935985c82ff84880891ef079556c9a3f0afa6451b8645052d211b01576c3/internetarchive-1.7.6-py2.py3-none-any.whl
Collecting ipykernel==4.7.0 (from -r requirements.txt (line 39))
  Using cached https://files.pythonhosted.org/packages/91/41/285df5cec77b7762117825035bcb2b28267d2c446144990542aca62051a9/ipykernel-4.7.0-py3-none-any.whl
Requirement already satisfied: ipython-genutils==0.2.0 in /opt/conda/lib/python3.7/site-packages (from -r requirements.txt (line 40)) (0.2.0)
Collecting ipython==6.2.1 (from -r requirements.txt (line 41))
  Using cached https://files.pythonhosted.org/packages/e1/87/294b718125085559b56453be87d90777863173470167e5f1d5de20b9eea3/ipython-6.2.1-py3-none-any.whl
Collecting ipywidgets==7.1.0 (from -r requirements.txt (line 42))
  Using cached https://files.pythonhosted.org/packages/c3/32/23894afee84f813778e6420e2a76fbecb47a76344fb0d444bcc8cd455716/ipywidgets-7.1.0-py2.py3-none-any.whl
Collecting jedi==0.11.1 (from -r requirements.txt (line 43))
  Using cached https://files.pythonhosted.org/packages/50/ca/d71f5a427601c98eadabfd73104cacbec8cc230e8416158decf61a48b0c6/jedi-0.11.1-py2.py3-none-any.whl
Requirement already satisfied: jinja2==2.10 in /opt/conda/lib/python3.7/site-packages (from -r requirements.txt (line 44)) (2.10)
Collecting jmespath==0.9.3 (from -r requirements.txt (line 45))
  Using cached https://files.pythonhosted.org/packages/b7/31/05c8d001f7f87f0f07289a5fc0fc3832e9a57f2dbd4d3b0fee70e0d51365/jmespath-0.9.3-py2.py3-none-any.whl
Collecting joblib==0.11 (from -r requirements.txt (line 46))
  Using cached https://files.pythonhosted.org/packages/4f/51/870b2ec270fc29c5d89f85353da420606a9cb39fba4747127e7c7d7eb25d/joblib-0.11-py2.py3-none-any.whl
Collecting jsonpatch==1.21 (from -r requirements.txt (line 47))
  Using cached https://files.pythonhosted.org/packages/03/2b/79316cdaa736a0c7b2c7815f76883df3970cc66588453ae31f5472e934f9/jsonpatch-1.21-py2.py3-none-any.whl
Collecting jsonpointer==2.0 (from -r requirements.txt (line 48))
  Using cached https://files.pythonhosted.org/packages/18/b0/a80d29577c08eea401659254dfaed87f1af45272899e1812d7e01b679bc5/jsonpointer-2.0-py2.py3-none-any.whl
Requirement already satisfied: jsonschema==2.6.0 in /opt/conda/lib/python3.7/site-packages (from -r requirements.txt (line 49)) (2.6.0)
Collecting jupyter-client==5.2.1 (from -r requirements.txt (line 50))
  Using cached https://files.pythonhosted.org/packages/f1/07/2293ae32a7bca98f2462ff101b5597c1bd48fabba00299151651ecf09157/jupyter_client-5.2.1-py2.py3-none-any.whl
Requirement already satisfied: jupyter-console==5.2.0 in /opt/conda/lib/python3.7/site-packages (from -r requirements.txt (line 51)) (5.2.0)
Requirement already satisfied: jupyter-core==4.4.0 in /opt/conda/lib/python3.7/site-packages (from -r requirements.txt (line 52)) (4.4.0)
Requirement already satisfied: jupyter==1.0.0 in /opt/conda/lib/python3.7/site-packages (from -r requirements.txt (line 53)) (1.0.0)
Collecting keras==2.1.2 (from -r requirements.txt (line 54))
  Using cached https://files.pythonhosted.org/packages/68/89/58ee5f56a9c26957d97217db41780ebedca3154392cb903c3f8a08a52208/Keras-2.1.2-py2.py3-none-any.whl
Collecting librosa==0.6.0 (from -r requirements.txt (line 55))
  Using cached https://files.pythonhosted.org/packages/6b/f4/422bfbefd581f74354ef05176aa48558c548243c87e359d91512d4b65523/librosa-0.6.0.tar.gz
Collecting llvmlite==0.22.0 (from -r requirements.txt (line 56))
  Using cached https://files.pythonhosted.org/packages/b4/f4/ddc252b83257bbf3922e47c5042a2e28e68bd36146a932adda3010c48377/llvmlite-0.22.0.tar.gz
Collecting markdown==2.6.11 (from -r requirements.txt (line 57))
  Using cached https://files.pythonhosted.org/packages/6d/7d/488b90f470b96531a3f5788cf12a93332f543dbab13c423a5e7ce96a0493/Markdown-2.6.11-py2.py3-none-any.whl
Requirement already satisfied: markupsafe==1.0 in /opt/conda/lib/python3.7/site-packages (from -r requirements.txt (line 58)) (1.0)
Collecting matplotlib==2.1.1 (from -r requirements.txt (line 59))
  Using cached https://files.pythonhosted.org/packages/50/27/57ab73d1b094540dec1a01d2207613248d8106f3c3f40e8d86f02eb8d18b/matplotlib-2.1.1.tar.gz
    Complete output from command python setup.py egg_info:
    IMPORTANT WARNING:
        pkg-config is not installed.
        matplotlib may not be able to find some of its dependencies
    ============================================================================
    Edit setup.cfg to change the build options
    
    BUILDING MATPLOTLIB
                matplotlib: yes [2.1.1]
                    python: yes [3.7.0 (default, Jun 28 2018, 13:15:42)  [GCC
                            7.2.0]]
                  platform: yes [linux]
    
    REQUIRED DEPENDENCIES AND EXTENSIONS
                     numpy: yes [version 1.15.1]
                       six: yes [using six version 1.11.0]
                  dateutil: yes [using dateutil version 2.7.3]
    backports.functools_lru_cache: yes [Not required]
              subprocess32: yes [Not required]
                      pytz: yes [using pytz version 2018.5]
                    cycler: yes [using cycler version 0.10.0]
                   tornado: yes [using tornado version 5.1]
                 pyparsing: yes [using pyparsing version 2.2.0]
                    libagg: yes [pkg-config information for 'libagg' could not
                            be found. Using local copy.]
                  freetype: no  [The C/C++ header for freetype2 (ft2build.h)
                            could not be found.  You may need to install the
                            development package.]
                       png: yes [version 1.6.34]
                     qhull: yes [pkg-config information for 'libqhull' could not
                            be found. Using local copy.]
    
    OPTIONAL SUBPACKAGES
               sample_data: yes [installing]
                  toolkits: yes [installing]
                     tests: no  [skipping due to configuration]
            toolkits_tests: no  [skipping due to configuration]
    
    OPTIONAL BACKEND EXTENSIONS
                    macosx: no  [Mac OS-X only]
                    qt5agg: yes [installing, Qt: 5.9.6, PyQt: 5.9.6; PySide2 not
                            found]
                    qt4agg: no  [PySide not found; PyQt4 not found]
                   gtk3agg: no  [Requires pygobject to be installed.]
                 gtk3cairo: no  [Requires cairocffi or pycairo to be installed.]
                    gtkagg: no  [Requires pygtk]
                     tkagg: yes [installing; run-time loading from Python Tcl /
                            Tk]
                     wxagg: no  [requires wxPython]
                       gtk: no  [Requires pygtk]
                       agg: yes [installing]
                     cairo: no  [cairocffi or pycairo not found]
                 windowing: no  [Microsoft Windows only]
    
    OPTIONAL LATEX DEPENDENCIES
                    dvipng: no
               ghostscript: no
                     latex: no
                   pdftops: no
    
    OPTIONAL PACKAGE DATA
                      dlls: no  [skipping due to configuration]
    
    ============================================================================
                            * The following required packages can not be built:
                            * freetype * Try installing freetype with `apt-get
                            * install libfreetype6-dev`
    
    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-8f7x1u95/matplotlib/
(base) root@a64ea3c3dcfa:/deep_learning_cookbook# apt-get install  freetype
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package freetype
(base) root@a64ea3c3dcfa:/deep_learning_cookbook# conda install pyside
Solving environment: failed

UnsatisfiableError: The following specifications were found to be in conflict:
  - pyside -> python=2.6
  - python=3
Use "conda info <package>" to see the dependencies for each package.

(base) root@a64ea3c3dcfa:/deep_learning_cookbook# conda info pyside

pyside 1.1.2 py26_0
-------------------
file name   : pyside-1.1.2-py26_0.tar.bz2
name        : pyside
version     : 1.1.2
build string: py26_0
build number: 0
channel     : https://repo.anaconda.com/pkgs/free/linux-64
size        : 5.5 MB
arch        : x86_64
constrains  : ()
date        : 2013-02-14
license_family: LGPL
md5         : 11fa88db2590da4cf5be53ceeec39cbf
platform    : linux
subdir      : linux-64
url         : https://repo.anaconda.com/pkgs/free/linux-64/pyside-1.1.2-py26_0.tar.bz2
dependencies:
    libpng
    python 2.6*
    qt 4.7.4
    shiboken

pyside 1.1.2 py27_0
-------------------
file name   : pyside-1.1.2-py27_0.tar.bz2
name        : pyside
version     : 1.1.2
build string: py27_0
build number: 0
channel     : https://repo.anaconda.com/pkgs/free/linux-64
size        : 5.5 MB
arch        : x86_64
constrains  : ()
date        : 2012-10-25
license_family: LGPL
md5         : e423250a32310b69f25c84d8ee7426c0
platform    : linux
subdir      : linux-64
url         : https://repo.anaconda.com/pkgs/free/linux-64/pyside-1.1.2-py27_0.tar.bz2
dependencies:
    libpng
    python 2.7*
    qt 4.7.4
    shiboken

pyside 1.2.0 py27_0
-------------------
file name   : pyside-1.2.0-py27_0.tar.bz2
name        : pyside
version     : 1.2.0
build string: py27_0
build number: 0
channel     : https://repo.anaconda.com/pkgs/free/linux-64
size        : 5.6 MB
arch        : x86_64
constrains  : ()
date        : 2013-08-01
license_family: LGPL
md5         : 914fdac952bb3983ea4956050018d514
platform    : linux
subdir      : linux-64
url         : https://repo.anaconda.com/pkgs/free/linux-64/pyside-1.2.0-py27_0.tar.bz2
dependencies:
    libpng
    python 2.7*
    qt
    shiboken

pyside 1.2.1 py27_0
-------------------
file name   : pyside-1.2.1-py27_0.tar.bz2
name        : pyside
version     : 1.2.1
build string: py27_0
build number: 0
channel     : https://repo.anaconda.com/pkgs/free/linux-64
size        : 5.6 MB
arch        : x86_64
constrains  : ()
date        : 2013-08-19
license_family: LGPL
md5         : 12562340f6b91dd5f390614a991a67c8
platform    : linux
subdir      : linux-64
url         : https://repo.anaconda.com/pkgs/free/linux-64/pyside-1.2.1-py27_0.tar.bz2
dependencies:
    libpng
    python 2.7*
    qt 4.8.5
    shiboken

pyside 1.2.1 py27_1
-------------------
file name   : pyside-1.2.1-py27_1.tar.bz2
name        : pyside
version     : 1.2.1
build string: py27_1
build number: 1
channel     : https://repo.anaconda.com/pkgs/free/linux-64
size        : 5.6 MB
arch        : x86_64
constrains  : ()
date        : 2014-07-26
license_family: LGPL
md5         : c70501901c0d8b31f8ada5adba4524b0
platform    : linux
subdir      : linux-64
url         : https://repo.anaconda.com/pkgs/free/linux-64/pyside-1.2.1-py27_1.tar.bz2
dependencies:
    libpng
    python 2.7*
    qt 4.8.5
    shiboken

#3.docker hub 登録
ここからは、新たにソフトを導入したdockerを自分のhubに登録する方法です。
ご自身で何かソフトウェアを導入されたら、ぜひhubに登録することをお勧めします。
続きの作業を誰かに依頼したり、エラーがでてわからなくなったときに、対処方法を問い合わせるのにも役立ちます。

$ docker ps 
CONTAINER ID        IMAGE                   COMMAND                  CREATED             STATUS              PORTS                                            NAMES
b28c065c8b45        continuumio/anaconda3            "/usr/bin/tini -- /b…"   21 hours ago        Up 21 hours                                                                                  elegant_gates       

$ docker commit b28c065c8b45  kaizenjapan/anaconda-deep-1
sha256:2d26c8621bf9cc3c2400477a9db98bb21a953fdbe53c22da395ca4a80b15261f

$ docker push  kaizenjapan/anaconda-deep-1
The push refers to repository [docker.io/kaizenjapan/anaconda-deep-1]
b6d479cc3a0f: Pushing [==>                                                ]  68.41MB/1.453GB
6410333f34cf: Mounted from kaizenjapan/anaconda-keras-ten 
cf342e34eca3: Mounted from kaizenjapan/anaconda-keras-ten 
cea95006e36a: Mounted from kaizenjapan/anaconda-keras-ten 
0f3a12fef684: Mounted from kaizenjapan/anaconda-keras-ten 

python2

(base) root@2a54d76f43e9:/deep_learning_cookbook# pip install -r requirements.txt
Collecting args==0.1.0 (from -r requirements.txt (line 7))
  Downloading https://files.pythonhosted.org/packages/e5/1c/b701b3f4bd8d3667df8342f311b3efaeab86078a840fb826bd204118cc6b/args-0.1.0.tar.gz
Collecting audioread==2.1.5 (from -r requirements.txt (line 8))
  Downloading https://files.pythonhosted.org/packages/21/81/d6dfb88379ab03d7f385c5a2e5ed045af0959418c38ce7cc4efc0fba0da2/audioread-2.1.5.tar.gz
Collecting backports.csv==1.0.5 (from -r requirements.txt (line 9))
  Downloading https://files.pythonhosted.org/packages/23/01/0b1fce3fd8199fe32338dc66747baad52c7183b7f587128bc77cefde0620/backports.csv-1.0.5-py2.py3-none-any.whl
Collecting beautifulsoup4==4.6.0 (from -r requirements.txt (line 10))
  Downloading https://files.pythonhosted.org/packages/a6/29/bcbd41a916ad3faf517780a0af7d0254e8d6722ff6414723eedba4334531/beautifulsoup4-4.6.0-py2-none-any.whl (86kB)
    100% |████████████████████████████████| 92kB 4.5MB/s 
Collecting bleach==1.5.0 (from -r requirements.txt (line 11))
  Downloading https://files.pythonhosted.org/packages/33/70/86c5fec937ea4964184d4d6c4f0b9551564f821e1c3575907639036d9b90/bleach-1.5.0-py2.py3-none-any.whl
Collecting boto3==1.5.9 (from -r requirements.txt (line 12))
  Downloading https://files.pythonhosted.org/packages/1b/ae/0971dbeb724cc7e89ffb1f56c478294201f19578764a8f145419d01f3502/boto3-1.5.9-py2.py3-none-any.whl (128kB)
    100% |████████████████████████████████| 133kB 7.4MB/s 
Collecting boto==2.48.0 (from -r requirements.txt (line 13))
  Downloading https://files.pythonhosted.org/packages/bd/b7/a88a67002b1185ed9a8e8a6ef15266728c2361fcb4f1d02ea331e4c7741d/boto-2.48.0-py2.py3-none-any.whl (1.4MB)
    100% |████████████████████████████████| 1.4MB 6.8MB/s 
Collecting botocore==1.8.23 (from -r requirements.txt (line 14))
  Downloading https://files.pythonhosted.org/packages/19/1c/c0ba393d5a4efdb5f65d5bc053a3543f86b2e02119a8cd74b12845cc3ef9/botocore-1.8.23-py2.py3-none-any.whl (4.0MB)
    100% |████████████████████████████████| 4.0MB 5.8MB/s 
Collecting bs4==0.0.1 (from -r requirements.txt (line 15))
  Downloading https://files.pythonhosted.org/packages/10/ed/7e8b97591f6f456174139ec089c769f89a94a1a4025fe967691de971f314/bs4-0.0.1.tar.gz
Collecting bz2file==0.98 (from -r requirements.txt (line 16))
  Downloading https://files.pythonhosted.org/packages/61/39/122222b5e85cd41c391b68a99ee296584b2a2d1d233e7ee32b4532384f2d/bz2file-0.98.tar.gz
Collecting certifi==2017.11.5 (from -r requirements.txt (line 17))
  Downloading https://files.pythonhosted.org/packages/29/9b/25ef61e948321296f029f53c9f67cc2b54e224db509eb67ce17e0df6044a/certifi-2017.11.5-py2.py3-none-any.whl (330kB)
    100% |████████████████████████████████| 337kB 10.2MB/s 
Requirement already satisfied: chardet==3.0.4 in /opt/conda/lib/python2.7/site-packages (from -r requirements.txt (line 18)) (3.0.4)
Collecting click-plugins==1.0.3 (from -r requirements.txt (line 19))
  Downloading https://files.pythonhosted.org/packages/77/05/da5c9e19457f20cadfe22c397cd3852577066066f63e40f2baa0831b1693/click-plugins-1.0.3.tar.gz
Requirement already satisfied: click==6.7 in /opt/conda/lib/python2.7/site-packages (from -r requirements.txt (line 20)) (6.7)
Collecting cligj==0.4.0 (from -r requirements.txt (line 21))
  Downloading https://files.pythonhosted.org/packages/e8/c1/d2a5a83f1bf59b820b5ffb0c63fc31d13279d7b985f260c1f8c5ca1693d0/cligj-0.4.0-py2-none-any.whl
Collecting clint==0.5.1 (from -r requirements.txt (line 22))
  Downloading https://files.pythonhosted.org/packages/3d/b4/41ecb1516f1ba728f39ee7062b9dac1352d39823f513bb6f9e8aeb86e26d/clint-0.5.1.tar.gz
Requirement already satisfied: cycler==0.10.0 in /opt/conda/lib/python2.7/site-packages (from -r requirements.txt (line 23)) (0.10.0)
Collecting decorator==4.1.2 (from -r requirements.txt (line 24))
  Downloading https://files.pythonhosted.org/packages/a1/4e/c42167ba5c3192bed633726d39d7896cc55d4fa3ec4a1fb60cd3a53fc4c7/decorator-4.1.2-py2.py3-none-any.whl
Collecting descartes==1.1.0 (from -r requirements.txt (line 25))
  Downloading https://files.pythonhosted.org/packages/e7/29/b23b57c92a1cf58da25070c10cab90fb38de22523ef7bdc76acdad717645/descartes-1.1.0-py2-none-any.whl
Collecting docopt==0.6.2 (from -r requirements.txt (line 26))
  Downloading https://files.pythonhosted.org/packages/a2/55/8f8cab2afd404cf578136ef2cc5dfb50baa1761b68c9da1fb1e4eed343c9/docopt-0.6.2.tar.gz
Requirement already satisfied: docutils==0.14 in /opt/conda/lib/python2.7/site-packages (from -r requirements.txt (line 27)) (0.14)
Requirement already satisfied: entrypoints==0.2.3 in /opt/conda/lib/python2.7/site-packages (from -r requirements.txt (line 28)) (0.2.3)
Requirement already satisfied: enum34==1.1.6 in /opt/conda/lib/python2.7/site-packages (from -r requirements.txt (line 29)) (1.1.6)
Collecting fiona==1.7.11.post1 (from -r requirements.txt (line 30))
  Downloading https://files.pythonhosted.org/packages/fb/0f/57c9733480e365189328064116d0c8ae10351a6d000d9a0c07aad239f016/Fiona-1.7.11.post1-cp27-cp27mu-manylinux1_x86_64.whl (13.5MB)
    100% |████████████████████████████████| 13.5MB 1.3MB/s 
Collecting flickrapi==2.4.0 (from -r requirements.txt (line 31))
  Downloading https://files.pythonhosted.org/packages/76/d7/291b7f0f02cf0f59460f7bcc15192905b4c61e13b9fb9263ee86b0a5f647/flickrapi-2.4.0-py2.py3-none-any.whl
Collecting gensim==3.2.0 (from -r requirements.txt (line 32))
  Downloading https://files.pythonhosted.org/packages/32/5a/2c8fd6c1a5ade3ca4e48f1c97e8a25be72a097fb181e233446354d71ed00/gensim-3.2.0-cp27-cp27mu-manylinux1_x86_64.whl (15.9MB)
    100% |████████████████████████████████| 15.9MB 2.1MB/s 
Collecting geopandas==0.3.0 (from -r requirements.txt (line 33))
  Downloading https://files.pythonhosted.org/packages/0a/0e/8ae74743ed7915ddb7d70cc8dfa8fc0b9b9cc81205c6e288a01915a46192/geopandas-0.3.0-py2.py3-none-any.whl (888kB)
    100% |████████████████████████████████| 890kB 12.1MB/s 
Requirement already satisfied: h5py==2.8.0 in /opt/conda/lib/python2.7/site-packages (from -r requirements.txt (line 34)) (2.8.0)
Collecting html5lib==0.9999999 (from -r requirements.txt (line 35))
  Downloading https://files.pythonhosted.org/packages/ae/ae/bcb60402c60932b32dfaf19bb53870b29eda2cd17551ba5639219fb5ebf9/html5lib-0.9999999.tar.gz (889kB)
    100% |████████████████████████████████| 890kB 17.2MB/s 
Collecting idna==2.6 (from -r requirements.txt (line 36))
  Downloading https://files.pythonhosted.org/packages/27/cc/6dd9a3869f15c2edfab863b992838277279ce92663d334df9ecf5106f5c6/idna-2.6-py2.py3-none-any.whl (56kB)
    100% |████████████████████████████████| 61kB 6.7MB/s 
Requirement already satisfied: imageio==2.4.1 in /opt/conda/lib/python2.7/site-packages (from -r requirements.txt (line 37)) (2.4.1)
Collecting internetarchive==1.7.6 (from -r requirements.txt (line 38))
  Downloading https://files.pythonhosted.org/packages/9b/01/935985c82ff84880891ef079556c9a3f0afa6451b8645052d211b01576c3/internetarchive-1.7.6-py2.py3-none-any.whl (68kB)
    100% |████████████████████████████████| 71kB 7.9MB/s 
Collecting ipykernel==4.7.0 (from -r requirements.txt (line 39))
  Downloading https://files.pythonhosted.org/packages/90/94/84d86cbfd1d62b3013a64ddccfb07b1ea189e0d51ee2c77bd891308670bc/ipykernel-4.7.0-py2-none-any.whl (106kB)
    100% |████████████████████████████████| 112kB 9.9MB/s 
Requirement already satisfied: ipython-genutils==0.2.0 in /opt/conda/lib/python2.7/site-packages (from -r requirements.txt (line 40)) (0.2.0)
Collecting ipython==6.2.1 (from -r requirements.txt (line 41))
  Could not find a version that satisfies the requirement ipython==6.2.1 (from -r requirements.txt (line 41)) (from versions: 0.10, 0.10.1, 0.10.2, 0.11, 0.12, 0.12.1, 0.13, 0.13.1, 0.13.2, 1.0.0, 1.1.0, 1.2.0, 1.2.1, 2.0.0, 2.1.0, 2.2.0, 2.3.0, 2.3.1, 2.4.0, 2.4.1, 3.0.0, 3.1.0, 3.2.0, 3.2.1, 3.2.2, 3.2.3, 4.0.0b1, 4.0.0, 4.0.1, 4.0.2, 4.0.3, 4.1.0rc1, 4.1.0rc2, 4.1.0, 4.1.1, 4.1.2, 4.2.0, 4.2.1, 5.0.0b1, 5.0.0b2, 5.0.0b3, 5.0.0b4, 5.0.0rc1, 5.0.0, 5.1.0, 5.2.0, 5.2.1, 5.2.2, 5.3.0, 5.4.0, 5.4.1, 5.5.0, 5.6.0, 5.7.0, 5.8.0)
No matching distribution found for ipython==6.2.1 (from -r requirements.txt (line 41))

参考資料(reference)

dockerで機械学習(python:anaconda)「直感Deep Learning」Antonio Gulli、Sujit Pal 第1章,第2章
https://qiita.com/kaizen_nagoya/items/483ae708c71c88419c32

OpenCVをPythonで動かそうとしてlibGL.soが無いって言われたけど解決した。
https://qiita.com/toshitanian/items/5da24c0c0bd473d514c8

サーバサイドにおけるmatplotlibによる作図Tips
https://qiita.com/TomokIshii/items/3a26ee4453f535a69e9e

Dockerでホストとコンテナ間でのファイルコピー
https://qiita.com/gologo13/items/7e4e404af80377b48fd5

Docker for Mac でファイル共有を利用する
https://qiita.com/seijimomoto/items/1992d68de8baa7e29bb5

「名古屋のIoTは名古屋のOSで」Dockerをどっかーらどうやって使えばいいんでしょう。TOPPERS/FMP on RaspberryPi with Macintosh編 5つの関門
https://qiita.com/kaizen_nagoya/items/9c46c6da8ceb64d2d7af

64bitCPUへの道 and/or 64歳の決意
https://qiita.com/kaizen_nagoya/items/cfb5ffa24ded23ab3f60

ゼロから作るDeepLearning2自然言語処理編 読書会の進め方(例)
https://qiita.com/kaizen_nagoya/items/025eb3f701b36209302e

Ethernet 記事一覧 Ethernet(0)
https://qiita.com/kaizen_nagoya/items/88d35e99f74aefc98794

Wireshark 一覧 wireshark(0)、Ethernet(48)
https://qiita.com/kaizen_nagoya/items/fbed841f61875c4731d0

線網(Wi-Fi)空中線(antenna)(0) 記事一覧(118/300目標)
https://qiita.com/kaizen_nagoya/items/5e5464ac2b24bd4cd001

C++ Support(0) 
https://qiita.com/kaizen_nagoya/items/8720d26f762369a80514

Coding Rules(0) C Secure , MISRA and so on
https://qiita.com/kaizen_nagoya/items/400725644a8a0e90fbb0

Autosar Guidelines C++14 example code compile list(1-169)
https://qiita.com/kaizen_nagoya/items/8ccbf6675c3494d57a76

Error一覧(C/C++, python, bash...) Error(0)
https://qiita.com/kaizen_nagoya/items/48b6cbc8d68eae2c42b8

なぜdockerで機械学習するか 書籍・ソース一覧作成中 (目標100)
https://qiita.com/kaizen_nagoya/items/ddd12477544bf5ba85e2

言語処理100本ノックをdockerで。python覚えるのに最適。:10+12
https://qiita.com/kaizen_nagoya/items/7e7eb7c543e0c18438c4

プログラムちょい替え(0)一覧:4件
https://qiita.com/kaizen_nagoya/items/296d87ef4bfd516bc394

一覧の一覧( The directory of directories of mine.) Qiita(100)
https://qiita.com/kaizen_nagoya/items/7eb0e006543886138f39

官公庁・学校・公的団体(NPOを含む)システムの課題、官(0)
https://qiita.com/kaizen_nagoya/items/04ee6eaf7ec13d3af4c3

プログラマが知っていると良い「公序良俗」
https://qiita.com/kaizen_nagoya/items/9fe7c0dfac2fbd77a945

LaTeX(0) 一覧 
https://qiita.com/kaizen_nagoya/items/e3f7dafacab58c499792

自動制御、制御工学一覧(0)
https://qiita.com/kaizen_nagoya/items/7767a4e19a6ae1479e6b

Rust(0) 一覧 
https://qiita.com/kaizen_nagoya/items/5e8bb080ba6ca0281927

小川清最終講義、最終講義(再)計画, Ethernet(100) 英語(100) 安全(100)
https://qiita.com/kaizen_nagoya/items/e2df642e3951e35e6a53

文書履歴(document history)

ver. 0.10 初稿 20181014 昼

最後までおよみいただきありがとうございました。

いいね 💚、フォローをお願いします。

Thank you very much for reading to the last sentence.

Please press the like icon 💚 and follow me for your happy life.

1
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?