Как удалить jupiter notebook
Перейти к содержимому

Как удалить jupiter notebook

  • автор:

Как удалить Jupyter

Предположим, мой путь установки дает мне / usr / local / bin / jupyter, и выполнение вышеуказанной команды не работает для меня; Любая другая рекомендация? aptitude диспетчера пакетов Debian не показывает мне установленный пакет jupyter- *. Благодарю.

Orco 20 март 2018, в 21:13
Показать ещё 2 комментария
Поделиться:

6 ответов

Когда вы $ pip install jupyter устанавливаете несколько зависимостей. Лучший способ полностью удалить его — запустить:

  • $ pip install pip-autoremove
  • $ pip-autoremove jupyter -y

Пожалуйста, обратитесь к этому связанному вопросу .

pip-autoremove удаляет пакет и его неиспользуемые зависимости. Вот docs.

Stan_MD 17 июль 2016, в 00:18
Поделиться
отличный ответ .
Vitaliy Terziev 22 окт. 2017, в 13:53
Наконец, я нашел решение для удаления всех зависимостей. Это полностью работает.
gustav 31 окт. 2018, в 08:41

Если метод pip-autoremove не удаляет все и pip3 uninstall jupyter только что удалил некоторые пакеты, сделайте следующее:

Копировать вставить:

sudo может быть необходимо в соответствии с вашими потребностями.

python3 -m pip uninstall -y jupyter jupyter_core jupyter-client jupyter-console notebook qtconsole nbconvert nbformat 

Исполнительный Редактировать:

pip3 uninstall jupyter pip3 uninstall jupyter_core pip3 uninstall jupyter-client pip3 uninstall jupyter-console pip3 uninstall notebook pip3 uninstall qtconsole pip3 uninstall nbconvert pip3 uninstall nbformat 

Объяснение каждого:

  1. Удалите jupyter : pip3 uninstall jupyter
  2. Удалите jupyter_core (также удаляются следующие двоичные файлы: jupyter , jupyter-migrate , jupyter-troubleshoot ): pip3 uninstall jupyter_core
  3. Удалите jupyter-client : pip3 uninstall jupyter-client
  4. Удалить jupyter-console : pip3 uninstall jupyter-console
  5. Удалить jupyter-notebook (также удаляются следующие двоичные файлы: jupyter-bundlerextension , jupyter-nbextension , jupyter-notebook , jupyter-serverextension ): pip3 uninstall notebook
  6. Удалите jupyter-qtconsole : pip3 uninstall qtconsole
  7. Удалите jupyter-nbconvert : pip3 uninstall nbconvert
  8. Удалить jupyter-trust : pip3 uninstall nbformat

Rahul Bharadwaj 21 окт. 2018, в 05:34
Поделиться

Попробуйте pip uninstall jupyter_core . Подробности ниже:

Я столкнулся с подобной проблемой, когда в моем ноутбуке Jupyter был только ноутбук с Python 2. (нет записной книжки Python 3)

Я попытался удалить jupyter с помощью pip unistall jupyter , pi3 uninstall jupyter и предложенного pip-autoremove jupyter -y .

Ничего не сработало. Я запустил which jupyter , и получил /home/ankit/.local/bin/jupyter

Файл /home/ankit/.local/bin/jupyter был просто простым кодом Python:

#!/usr/bin/python3 # -*- coding: utf-8 -*- import re import sys from jupyter_core.command import main if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) sys.exit(main()) 

Попытался удалить модуль jupyter_core помощью pip uninstall jupyter_core и это сработало.

Переустановил jupyter с pip3 install jupyter и все вернулось на круги своя.

How to uninstall jupyter

Suppose my install path gives me /usr/local/bin/jupyter, and running the above command does not work for me; any other recommendation? the Debian package manager aptitude does not show me any jupyter-* package installed. Thanks.

Mar 20, 2018 at 21:13

«python3 -m pip uninstall -y jupyter jupyter_core jupyter-client jupyter-console jupyterlab_pygments notebook qtconsole nbconvert nbformat jupyterlab-widgets nbclient» — Copied from @Rahual Bhardwaj answer below

Feb 26, 2022 at 14:35

14 Answers 14

If you don’t want to use pip-autoremove (since it removes dependencies shared among other packages) and pip3 uninstall jupyter just removed some packages, then do the following:

Copy-Paste:

sudo may be needed as per your need.

python3 -m pip uninstall -y jupyter jupyter_core jupyter-client jupyter-console jupyterlab_pygments qtconsole notebook nbconvert nbformat nbclassic nbclient jupyterlab-widgets jupyter-events jupyter-server jupyter-server-terminals 

Note:

The above command will only uninstall jupyter specific packages. I have not added other packages to uninstall since they might be shared among other packages (eg: Jinja2 is used by Flask , ipython is a separate set of packages themselves, tornado again might be used by others).

In any case, all the dependencies are mentioned below(as of 21 Nov, 2020. jupyter==4.4.0 )

If you are sure you want to remove all the dependencies, then you can use Stan_MD’s answer.

argon2-cffi argon2-cffi-bindings async-generator attrs backcall bleach cffi dataclasses decorator defusedxml entrypoints importlib-metadata ipykernel ipython ipython-genutils ipywidgets jedi Jinja2 jsonschema jupyter jupyter-client jupyter-console jupyter-core jupyterlab-pygments jupyterlab-widgets MarkupSafe mistune nbclient nbconvert nbformat nest-asyncio notebook packaging pandocfilters parso pexpect pickleshare prometheus-client prompt-toolkit ptyprocess pycparser Pygments pyparsing pyrsistent python-dateutil pyzmq qtconsole QtPy Send2Trash six terminado testpath tornado traitlets typing-extensions wcwidth webencodings widgetsnbextension zipp 

Executive Edit:

pip3 uninstall jupyter pip3 uninstall jupyter_core pip3 uninstall jupyter-client pip3 uninstall jupyter-console pip3 uninstall jupyterlab_pygments pip3 uninstall notebook pip3 uninstall qtconsole pip3 uninstall nbconvert pip3 uninstall nbformat 

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 

When unistalling jupyter I’ve seen this:

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. 

When unistalling notebook I’ve seen this:

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. 

How to uninstall Jupyter Notebook

How to uninstall Jupyter Notebook

Alternatively, you can use the conda command if you have Anaconda or Miniconda installed on your system. In this case, you can use the following steps:

  1. Open a terminal or command prompt.
  2. Type conda list to see a list of installed packages.
  3. Locate the entry for Jupyter Notebook, and then type conda remove jupyter to uninstall it.

Suppose you have any trouble uninstalling Jupyter Notebook. In that case, you can try using the —yes or -y flag to force the uninstallation, or you can consult the documentation for the pip or conda command for more options.

#What is Jupyter Notebook

Jupyter Notebook is an open-source web application that allows you to create and share documents that contain live code, equations, visualizations, and narrative text. It is commonly used for data cleaning and transformation, numerical simulation, statistical modelling, data visualization, machine learning, and much more.

Jupyter Notebook is based on the IPython kernel, which allows you to execute Python code in a Jupyter Notebook. However, Jupyter Notebook also supports other languages, such as R, Julia, and Scala so you can use it with many different programming languages.

Jupyter Notebook is a useful tool for data scientists, data analysts, and anyone who works with data in any capacity. It allows you to combine code, text, and visualizations in a single document, which makes it a great platform for explaining and presenting data-driven ideas.

#What is Anaconda

Anaconda is a free and open-source distribution of the Python and R programming languages for scientific computing that aims to simplify package management and deployment. Package versions are managed by the package management system conda .

Anaconda is widely used in the data science and machine learning community and is included in many data science packages and collections. It comes with many pre-installed packages and environments, making it easy to start with data science and machine learning tasks.

Anaconda also includes the conda command-line tool, which allows you to easily install, update, and manage your packages and environments. This makes it a powerful platform for working with data and allows you to reproduce your work on other systems easily.

In summary, Anaconda is a popular and user-friendly distribution of Python and R programming languages, making it easy to start with data science and machine learning.

#What is Miniconda

Miniconda is a free and open-source minimal distribution of the Anaconda Python and R programming language distribution. It contains only a minimal set of packages and Conda, their package, dependency and environment management system.

Miniconda is useful if you want to have a small and self-contained installation that can be easily transferred to other systems and servers. It allows you to create and manage multiple independent environments with their own packages and dependencies. This can be useful if you need to work with different versions of packages or if you want to avoid conflicting dependencies between your projects.

Miniconda can be installed on Windows, macOS, and Linux systems. It is a smaller alternative to the full Anaconda distribution and is typically used by advanced users who want more control over their Python and R environments.

Follow the next guide if you also want to uninstall Anaconda.

Related articles

  • Where Python is used. Types of Python applications (Updated)
  • What to do if pyenv global is not working — 2023 solution
  • Google Colab vs Jupyter Notebook: Which is Better?
  • How to Open Jupyter Notebook in Chrome

Добавить комментарий

Ваш адрес email не будет опубликован. Обязательные поля помечены *