【发布时间】:2020-08-29 09:28:10
【问题描述】:
我正在尝试在 Ubuntu 20.04 上重现本书 "Mining the Social Web" (Russel/Klassen) 的 Docker 安装。我设置了 Docker 并尝试直接从存储库创建 Docker 容器(repo2docker https://github.com/mikhailklassen/Mining-the-Social-Web-3rd-Edition)以打开 Jupyter Notebook,但出现错误。在我安装 Python3 和 pip3 之前(不能只安装 Python 和 pip)。
在运行代码中得到这个倍数:
WARNING: pip is being invoked by an old script wrapper. This will fail in a future version of pip.
Please see https://github.com/pypa/pip/issues/5599 for advice on fixing the underlying issue.
To avoid this problem you can invoke Python with '-m pip' instead of running pip directly.
(无法修复内部链接的问题)
以及代码末尾的这个错误:
ERROR: Cannot uninstall 'terminado'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.
Removing intermediate container 71cfe8e913dd
The command '/bin/sh -c ${KERNEL_PYTHON_PREFIX}/bin/pip install --no-cache-dir -r "binder/requirements.txt"' returned a non-zero code:1
也许有人可以帮助我?非常感谢!
【问题讨论】:
-
你在哪个命令上得到这个错误?
-
运行docker并输入命令后:repo2docker github.com/mikhailklassen/Mining-the-Social-Web-3rd-Edition
-
确保使用
pip3 install jupyter-repo2docker安装它? -
无法卸载binder/requirements.tx中指定的tornado==6.0.2。首先尝试通过以下方式卸载:
pip uninstall tornado如果不起作用,请尝试从站点包中手动将其删除。如果不起作用,我的建议是创建一个 virtualenv 并在 virtualenv 中执行 Python 安装步骤,基本上是“POST Docker”步骤。 -
感谢您的回答! @Turan Lalwani:
pip3 install jupyter-repo2docker似乎有效,但我在代码WARNING: pip is being invoked by an old script wrapper. This will fail in a future version of pip. Please see https://github.com/pypa/pip/issues/5599 for advice on fixing the underlying issue. To avoid this problem you can invoke Python with '-m pip' instead of running pip directly.中得到了相同的警告
标签: python-3.x docker pip ubuntu-20.04