Docker Ubuntu 20.04 - Cannot uninstall 'terminado' and problems with pip

馋奶兔 提交于 2021-01-29 19:02:28

问题


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!


回答1:


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.

Clone the repo

navigate to /binder

execute pip install --ignore-installed -r requirements.txt

navigate to /notebooks Execute jupyter notebook



来源:https://stackoverflow.com/questions/61770369/docker-ubuntu-20-04-cannot-uninstall-terminado-and-problems-with-pip

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!