python - 在 Django 上 Docker 安装 Jupyter 失败
问题描述
我正在按照推荐的方式通过安装以下 pip 包在 django 上安装 jupyter:
- 朱庇特
- 蟒蛇
- 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 中的固定依赖项才能看到完全相同的错误。
解决方案
推荐阅读
- css - AWS 无服务器部署 antd 注入不需要的内联 css
- java - Java 内存模型与同步、易失和(标记)锁的交互
- python - 从 scipy.spatial.procrustes 转换矩阵
- python - 熊猫 read_csv 跳到新行
- spring - 测试期间出现 UnsatisfiedDependencyException
- netsuite - Netsuite-Suitelet post to restlet 获取参数
- ios - 无法在 Xcode 10 中查找屏幕比例和意外的物理屏幕方向
- php - Laravel如何将参数传递给中间件?
- spring - 杰克逊将日期序列化为时间戳
- javascript - 重新加载移动页面脚本响应