I am using Windows and learning to use tensorflow, so I need to run it under Docker (Toolbox).
Following the usual instruction:
$ docker run -it gcr.io/tensorflow/tensorflow
import pandas as pd
ImportError: No module named pandas
image should be built on a
linux operating system. You should launch a
shell inside the Docker
grc.io/tensorflow/tensorflow to install the requisite python dependencies.
See Docker quickstart for using
docker run -it grc.io/tensorflow/tensorflow /bin/bash
sudo apt-get install python-pandas
according to pandas docs.
To avoid doing this every time you launch the image, you need to
commit the change to create a new
commit the change, you need to get the
run and installation steps above):
sudo docker ps –a # Get list of all containers previously started with run command
commit your changes
git style using the
container_id displayed in the container list you just got and giving it an
image_name of your choosing:
sudo docker commit container_id image_name
image will now show up in the list displayed by
sudo docker ps –a.
If you get a free
docker account you can
pull your updated
image to your
repo, or just keep it locally.
See docs under 'Updating and Committing your image'.