Pandass:Import error in ipython notebook running in docker container -
i have created docker container [on ubuntu 16] ipython using git repo: docker-notebook.
this dockerfile:
from python:2 add python_assignment2.ipynb / run pip install numpy run pip install matplotlib run pip install pandas run pip install jupyter expose 8888 cmd jupyter notebook python_assignment2.ipynb
the server works find , able create notebook in web browser gives me import error whenever import lib pandass numpy or matplotlib tho have mentioned required dependencies in dockerfile this:
run pip install pandas
and aslo tried
runsudo apt-get install pandas
and
python -m install pandas
things have tries far:
- docker exec sudo apt-get install pandas [doesnt work]
- docker run /bin/bash
- then inside bash: sudo apt-get install pandas [doesnt work] please help. thanks.
after installation of library, need commit respective container this:
docker commit newimagename
so now, changes made save in newimagename. run docker run newimagename , see changes preserved in container.
use -v mounting directory.
Comments
Post a Comment