Удалить jupiter notebook linux

Uninstall jupyter with pip

I have the jupyter executable here: /usr/local/bin/jupyter I know historically I’ve been using Python 2 from the Ubuntu distribution (no Anaconda) so I think that jupyter came from a system pip2 install, but I can not find a way to prove this, is there any? Assuming the previous scenario, I’ve done both this: sudo /usr/local/bin/pip2 uninstall jupyter and this sudo /usr/local/bin/pip2 uninstall notebook (even if in /usr/local/bin , I still need sudo cause it seems all the files in there belong to root , for some reason), but I keep seeing that executable in here: /usr/local/bin/jupyter Also: I know that jupyter is the affected one because now the command: jupyter notebook gives this output Error executing Jupyter command ‘notebook’: [Errno 2] No such file or directory . How do I uninstall it? Why pip2 is not removing that executable file? Edit: I currently see this on my filesystem:

ls -lah /usr/local/bin | grep jupyter -rwxr-xr-x 1 root root 222 May 6 2017 jupyter -rwxr-xr-x 1 root root 221 May 6 2017 jupyter-console -rwxr-xr-x 1 root root 264 May 6 2017 jupyter-kernelspec -rwxr-xr-x 1 root root 222 May 6 2017 jupyter-migrate -rwxr-xr-x 1 root root 224 May 6 2017 jupyter-nbconvert -rwxr-xr-x 1 root root 224 May 6 2017 jupyter-qtconsole -rwxr-xr-x 1 root root 243 May 6 2017 jupyter-run -rwxr-xr-x 1 root root 227 May 6 2017 jupyter-troubleshoot -rwxr-xr-x 1 root root 255 May 6 2017 jupyter-trust 
sudo pip2 uninstall jupyter [sudo] password for : The directory '/home//.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag. Uninstalling jupyter-1.0.0: /usr/local/lib/python2.7/dist-packages/jupyter-1.0.0.dist-info/DESCRIPTION.rst /usr/local/lib/python2.7/dist-packages/jupyter-1.0.0.dist-info/INSTALLER /usr/local/lib/python2.7/dist-packages/jupyter-1.0.0.dist-info/METADATA /usr/local/lib/python2.7/dist-packages/jupyter-1.0.0.dist-info/RECORD /usr/local/lib/python2.7/dist-packages/jupyter-1.0.0.dist-info/WHEEL /usr/local/lib/python2.7/dist-packages/jupyter-1.0.0.dist-info/metadata.json /usr/local/lib/python2.7/dist-packages/jupyter-1.0.0.dist-info/pbr.json /usr/local/lib/python2.7/dist-packages/jupyter-1.0.0.dist-info/top_level.txt /usr/local/lib/python2.7/dist-packages/jupyter.py /usr/local/lib/python2.7/dist-packages/jupyter.pyc Proceed (y/n)? y Successfully uninstalled jupyter-1.0.0 The directory '/home//.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag. You are using pip version 9.0.1, however version 10.0.1 is available. You should consider upgrading via the 'pip install --upgrade pip' command. 
sudo pip2 uninstall notebook The directory '/home//.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag. Uninstalling notebook-5.0.0: /usr/local/bin/jupyter-bundlerextension /usr/local/bin/jupyter-nbextension /usr/local/bin/jupyter-notebook /usr/local/bin/jupyter-serverextension /usr/local/lib/python2.7/dist-packages/notebook-5.0.0.dist-info/DESCRIPTION.rst [. ] /usr/local/lib/python2.7/dist-packages/notebook/tree/tests/__init__.pyc /usr/local/lib/python2.7/dist-packages/notebook/tree/tests/test_tree_handler.py /usr/local/lib/python2.7/dist-packages/notebook/tree/tests/test_tree_handler.pyc /usr/local/lib/python2.7/dist-packages/notebook/utils.py /usr/local/lib/python2.7/dist-packages/notebook/utils.pyc /usr/local/lib/python2.7/dist-packages/notebook/view/__init__.py /usr/local/lib/python2.7/dist-packages/notebook/view/__init__.pyc /usr/local/lib/python2.7/dist-packages/notebook/view/handlers.py /usr/local/lib/python2.7/dist-packages/notebook/view/handlers.pyc Proceed (y/n)? y Successfully uninstalled notebook-5.0.0 The directory '/home//.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag. You are using pip version 9.0.1, however version 10.0.1 is available. You should consider upgrading via the 'pip install --upgrade pip' command. 

Источник

Читайте также:  Linux mint openvpn network manager

Удалите Jupyter с помощью пункта

Исторически я знаю, что использую Python 2 из дистрибутива Ubuntu (без Anaconda), поэтому я думаю, что jupyter пришел из системы pip2 установить, но я не могу найти способ доказать это, есть ли?

Предполагая предыдущий сценарий, я сделал это: sudo /usr/local/bin/pip2 uninstall jupyter и это sudo /usr/local/bin/pip2 uninstall notebook (даже если в /usr/local/bin Мне все еще нужно sudo потому что, кажется, все файлы там принадлежат root по какой-то причине), но я продолжаю видеть этот исполняемый файл здесь: /usr/local/bin/jupyter

Также: я знаю, что jupyter затронут, потому что теперь команда: jupyter notebook дает этот вывод Error executing Jupyter command ‘notebook’: [Errno 2] No such file or directory ,

Как мне удалить его? Зачем pip2 не удаляет этот исполняемый файл?

Редактировать:

В настоящее время я вижу это на моей файловой системе:

ls -lah /usr/local/bin | grep jupyter -rwxr-xr-x 1 root root 222 May 6 2017 jupyter -rwxr-xr-x 1 root root 221 May 6 2017 jupyter-console -rwxr-xr-x 1 root root 264 May 6 2017 jupyter-kernelspec -rwxr-xr-x 1 root root 222 May 6 2017 jupyter-migrate -rwxr-xr-x 1 root root 224 May 6 2017 jupyter-nbconvert -rwxr-xr-x 1 root root 224 May 6 2017 jupyter-qtconsole -rwxr-xr-x 1 root root 243 May 6 2017 jupyter-run -rwxr-xr-x 1 root root 227 May 6 2017 jupyter-troubleshoot -rwxr-xr-x 1 root root 255 May 6 2017 jupyter-trust 

Когда unistalling jupyter Я видел это:

sudo pip2 uninstall jupyter [sudo] password for : The directory '/home//.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag. Uninstalling jupyter-1.0.0: /usr/local/lib/python2.7/dist-packages/jupyter-1.0.0.dist-info/DESCRIPTION.rst /usr/local/lib/python2.7/dist-packages/jupyter-1.0.0.dist-info/INSTALLER /usr/local/lib/python2.7/dist-packages/jupyter-1.0.0.dist-info/METADATA /usr/local/lib/python2.7/dist-packages/jupyter-1.0.0.dist-info/RECORD /usr/local/lib/python2.7/dist-packages/jupyter-1.0.0.dist-info/WHEEL /usr/local/lib/python2.7/dist-packages/jupyter-1.0.0.dist-info/metadata.json /usr/local/lib/python2.7/dist-packages/jupyter-1.0.0.dist-info/pbr.json /usr/local/lib/python2.7/dist-packages/jupyter-1.0.0.dist-info/top_level.txt /usr/local/lib/python2.7/dist-packages/jupyter.py /usr/local/lib/python2.7/dist-packages/jupyter.pyc Proceed (y/n)? y Successfully uninstalled jupyter-1.0.0 The directory '/home//.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag. You are using pip version 9.0.1, however version 10.0.1 is available. You should consider upgrading via the 'pip install --upgrade pip' command. 

Когда unistalling notebook Я видел это:

sudo pip2 uninstall notebook The directory '/home//.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag. Uninstalling notebook-5.0.0: /usr/local/bin/jupyter-bundlerextension /usr/local/bin/jupyter-nbextension /usr/local/bin/jupyter-notebook /usr/local/bin/jupyter-serverextension /usr/local/lib/python2.7/dist-packages/notebook-5.0.0.dist-info/DESCRIPTION.rst [. ] /usr/local/lib/python2.7/dist-packages/notebook/tree/tests/__init__.pyc /usr/local/lib/python2.7/dist-packages/notebook/tree/tests/test_tree_handler.py /usr/local/lib/python2.7/dist-packages/notebook/tree/tests/test_tree_handler.pyc /usr/local/lib/python2.7/dist-packages/notebook/utils.py /usr/local/lib/python2.7/dist-packages/notebook/utils.pyc /usr/local/lib/python2.7/dist-packages/notebook/view/__init__.py /usr/local/lib/python2.7/dist-packages/notebook/view/__init__.pyc /usr/local/lib/python2.7/dist-packages/notebook/view/handlers.py /usr/local/lib/python2.7/dist-packages/notebook/view/handlers.pyc Proceed (y/n)? y Successfully uninstalled notebook-5.0.0 The directory '/home//.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag. You are using pip version 9.0.1, however version 10.0.1 is available. You should consider upgrading via the 'pip install --upgrade pip' command. 

Источник

Читайте также:  Bit macro in linux

jupyter-notebook on Arch Linux

This tutorial shows how to install jupyter-notebook package:

2. Uninstall / Remove jupyter-notebook package

Here is a brief guide to show you how to uninstall jupyter-notebook package:

3. Details of jupyter-notebook package

Repository : community
Name : jupyter-notebook
Version : 6.4.12-1
Description : The language-agnostic HTML notebook application for Project
Jupyter
Architecture : any
URL : https://github.com/jupyter/notebook
Licenses : BSD
Groups : None
Provides : None
Depends On : python-jinja python-tornado python-terminado
python-traitlets jupyter-nbformat python-jupyter_core
python-jupyter_client mathjax2 python-send2trash
jupyter-nbconvert python-prometheus_client
python-argon2_cffi python-ipython-genutils
Optional Deps : pandoc: notebook export
jupyter-widgetsnbextension: interactive widgets
Conflicts With : None
Replaces : jupyter
Download Size : 2.65 MiB
Installed Size : 26.73 MiB
Packager : Antonio Rojas
Build Date : Tue Jun 7 17:16:06 2022
Validated By : MD5 Sum SHA-256 Sum Signature

4. References on Arch Linux

5. The same packages on other Linux Distributions

jupyter-notebook (5.2.2-1ubuntu0.1) Ubuntu 18.04 LTS (Bionic Beaver)

jupyter-notebook (6.2.0-1) Ubuntu 21.04 (Hirsute Hippo)

jupyter-notebook (6.0.3-2) Ubuntu 20.10 (Groovy Gorilla)

jupyter-notebook (6.2.0-1) Ubuntu 21.10 (Impish Indri)

jupyter-notebook (5.7.8-bp153.2.52) openSUSE Leap

jupyter-notebook (6.4.6-1.1) openSuSE Tumbleweed

jupyter-notebook (6.4.8-1ubuntu0.1) Ubuntu 22.04 LTS (Jammy Jellyfish)

jupyter-notebook (5.7.8-1) Debian 10 (Buster)

Источник

Оцените статью
Adblock
detector