我正在尝试在Ubuntu 20.04上复制本书"Mining the Social Web" (Russel/Klassen)的Docker安装。我设置了Docker,并尝试直接从存储库(repo2docker https://github.com/mikhailklassen/Mining-the-Social-Web-3rd-Edition)创建Docker容器以打开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
也许有人可以帮助我吗?非常感谢!
答案 0 :(得分:0)
解决您的问题的方法,请不要使用docker,因为由于pip安装说明,它无法卸载tornado软件包,该软件包是纯distutil软件包。使用以下解决方案:
我正在研究虚拟环境,并且建议您也这样做。
克隆存储库
导航到/ binder
执行
pip install --ignore-installed -r requirements.txt
导航到/ notebooks 执行
jupyter notebook
答案 1 :(得分:0)
来自答案:https://stackoverflow.com/a/67134670/1290868
对我来说是requirements.txt中的这一行;
...
jupyterlab>=1.0
....
删除了版本部分 (">=1.0") 并且它起作用了;
...
jupyterlab
....
答案 2 :(得分:0)
我想更新 jupyter notebook / jupyterlab,但遇到了 terminado 问题,不确定是什么。即使在卸载它之后,它也是 avl(不知道为什么)。 因此,我卸载了 jupyterlab 并重新安装了它。