首页 > 解决方案 > 在 Django 上 Docker 安装 Jupyter 失败

问题描述

我正在按照推荐的方式通过安装以下 pip 包在 django 上安装 jupyter:

如此处所述,例如: https ://medium.com/ayuth/how-to-use-django-in-jupyter-notebook-561ea2401852

它工作了一段时间,但由于有些日子失败了,我无法弄清楚问题到底是什么:

我得到的错误如下:

ERROR: Complete output from command /usr/local/bin/python /usr/local/lib/python3.6/site-packages/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-2xou1hp2/overlay --no-warn-script-location --no-binary :none: --only-binary :none: --no-index -- setuptools wheel 'ipython>=5' 'jupyter_core>=4.2' jupyter_client:
  ERROR: Collecting setuptools
    ERROR: Could not find a version that satisfies the requirement setuptools (from versions: none)
  ERROR: No matching distribution found for setuptools

某些东西似乎破坏了安装,但我不知道它是什么。

更新:

我已经将一个基于 Docker 的测试项目上传到 Github 以演示该问题: ttps://github.com/vladox/test-divio-jupyter/blob/master/Dockerfile 您将看到发生错误的 pip install 命令。

您可能需要删除 requirements.txt 中的固定依赖项才能看到完全相同的错误。

标签: pythondjangojupyter-notebookdivio

解决方案


推荐阅读