Tag: docker ipython

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 […]

致命的:目的地path“/ home / ipy / ipynotebooks / soccer”已经存在并且不是空目录

我试图复制这个项目来预测 Google 2014年世界杯的结果 。 (ipython-soccer预测) 我正在通过该链接的“如何部署”部分。 直到这一行出现,所有的东西都是直接的 sudo docker run -p 8888:8888 fhoffa/ipython-predictions:v1 运行这个代码给了我下面的结果 2015-07-16 17:00:24,514 INFO spawned: 'sshd' with pid 10 2015-07-16 17:00:24,516 INFO spawned: 'gitpull-predictions' with pid 11 2015-07-16 17:00:25,420 INFO exited: gitpull-predictions (exit status 0; not expected) 2015-07-16 17:00:26,422 INFO success: ipython entered RUNNING state, process has stayed up for > than […]