Tag: ipython notebook

Pandass:在Docker容器中运行的ipython笔记本中导入错误

我已经使用git repo:docker-notebook为ipython创build了一个Docker容器[在Ubuntu 16上] 。 这是我的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 服务器工程find,我能够在Web浏览器中创build笔记本电脑,但是当我导入像pandass numpy或matplotlib这样的lib时,它会给我导入错误,即使我已经提到了Dockerfile中所有需要的依赖关系,如下所示: 运行pip安装pandas 也试过 RUNsudo apt-get安装pandas 和 python -m安装pandas 我到目前为止的事情: docker exec sudo apt-get install pandas [不工作] docker运行/ bin / bash 然后在bash里面:sudo apt-get […]