Skip to content

Instantly share code, notes, and snippets.

@tiandiduwuxiaoxiao
Last active October 25, 2023 18:26
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save tiandiduwuxiaoxiao/fabb692650484ce6dc30b4b088135edb to your computer and use it in GitHub Desktop.
Save tiandiduwuxiaoxiao/fabb692650484ce6dc30b4b088135edb to your computer and use it in GitHub Desktop.
install & uninstall jupyter

Install and uninstall jupyter

  1. Install jupyter
pip install jupyter
  • Launch jupyter
jupyter notebook
  1. Uninstall jupyter
pip install pip-autoremove
pip-autoremove jupyter -y
@pony-m
Copy link

pony-m commented Apr 15, 2022

(py36) C:\Users\zhong>pip install pip-autoremove
Requirement already satisfied: pip-autoremove in d:\anaconda3\envs\py36\lib\site-packages (0.10.0)
Requirement already satisfied: setuptools in d:\anaconda3\envs\py36\lib\site-packages (from pip-autoremove) (50.3.0.post20201006)
Requirement already satisfied: pip in d:\anaconda3\envs\py36\lib\site-packages (from pip-autoremove) (20.2.4)

(py36) C:\Users\zhong>pip-autoremove jupyter -y
Traceback (most recent call last):
  File "d:\anaconda3\envs\py36\lib\runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "d:\anaconda3\envs\py36\lib\runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "D:\anaconda3\envs\py36\Scripts\pip-autoremove.exe\__main__.py", line 4, in <module>
ModuleNotFoundError: No module named 'pip_autoremove'

@zainrhamid
Copy link

(py36) C:\Users\zhong>pip install pip-autoremove
Requirement already satisfied: pip-autoremove in d:\anaconda3\envs\py36\lib\site-packages (0.10.0)
Requirement already satisfied: setuptools in d:\anaconda3\envs\py36\lib\site-packages (from pip-autoremove) (50.3.0.post20201006)
Requirement already satisfied: pip in d:\anaconda3\envs\py36\lib\site-packages (from pip-autoremove) (20.2.4)

(py36) C:\Users\zhong>pip-autoremove jupyter -y
Traceback (most recent call last):
  File "d:\anaconda3\envs\py36\lib\runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "d:\anaconda3\envs\py36\lib\runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "D:\anaconda3\envs\py36\Scripts\pip-autoremove.exe\__main__.py", line 4, in <module>
ModuleNotFoundError: No module named 'pip_autoremove'

Same issue

@zainrhamid
Copy link

This might help

python -m pip uninstall -y jupyter jupyter_core jupyter-client jupyter-console jupyterlab_pygments notebook qtconsole nbconvert nbformat jupyterlab-widgets nbclient

@tomgerke
Copy link

Adding on to @zainrhamid 's suggestion.

python -m pip uninstall -y jupyter jupyter_core jupyter-client jupyter-console jupyterlab_pygments notebook qtconsole nbconvert nbformat jupyterlab-widgets nbclient jupyter-server-mathjax jupyterlab-code-formatter jupyterlab-lsp nbclassic nbdime jupyterlab-git

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment