在Django上无法在Docker上安装Jupyter

时间:2020-04-20 20:28:46

标签: python django jupyter-notebook divio

我正在按照建议的方式通过安装以下pip软件包在Django上安装jupyter:

  • jupyter
  • ipython
  • django扩展名

例如此处所述: 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中固定的依赖项,以查看完全相同的错误。

0 个答案:

没有答案