Docker Ubuntu 20.04-无法卸载'terminado'和pip问题 [英] Docker Ubuntu 20.04 - Cannot uninstall 'terminado' and problems with pip

查看:289
本文介绍了Docker Ubuntu 20.04-无法卸载'terminado'和pip问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试复制本书的Docker安装在Ubuntu 20.04上挖掘社交网络"(Russel/Klassen).我设置了Docker,并尝试直接从存储库创建Docker容器(repo2docker https://github.com/mikhailklassen/Mining-the-Social-Web-3rd-Edition )来打开Jupyter笔记本,但出现错误.在我安装Python3和pip3之前(不能仅安装Python和pip).

I'am trying to reproduce the Docker Installation of the Book "Mining the Social Web" (Russel/Klassen) on Ubuntu 20.04. I set up Docker and tried to create the Docker container from the respository directly (repo2docker https://github.com/mikhailklassen/Mining-the-Social-Web-3rd-Edition) for opening the Jupyter Notebook, but I got ERRORS. Before I installed Python3 and pip3 (couldn't install just Python and pip).

在运行代码中获得此倍数:

Got this multiple inside the running code:

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.

(无法解决内部链接的问题)

(cannot fix the problem with the link inside)

以及此错误在代码末尾:

and this ERROR at the End of Code:

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

也许有人可以帮助我吗?非常感谢!

Maybe somebody can help me? thx a lot!

推荐答案

解决您的问题的方法,请不要使用docker,因为由于pip安装说明,它无法卸载tornado软件包,该软件包是纯distutil软件包.使用以下解决方案:

Solution to your issue, don't use docker as it won't be able to uninstall the tornado package which is a pure distutil package due to pip install instructions. Use below solution:

我正在研究虚拟环境,并建议您也这样做.

I work on virtual envs, and would recommend you to do the same.

克隆存储库

导航到/binder

navigate to /binder

执行 pip install --ignore-installed -r requirements.txt

导航到/notebooks执行 jupyter笔记本

navigate to /notebooks Execute jupyter notebook

这篇关于Docker Ubuntu 20.04-无法卸载'terminado'和pip问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆