Jupyter Notebook のアンインストール ができない

参考
How to uninstall jupyter – Stack Overflow

問題

公式をもとにpipでJupyter Noteboookをインストールした。

$ python3 -m pip install --upgrade pip
$ python3 -m pip install jupyter

これのアンインストールができない。

目的

$ which jupyter notebook

で何も表示されない。

失敗例

autoremoveを使っても消えない。

$ pip install pip-autoremove
$ pip-autoremove jupyter
$ which jupyter
/Users/******/.pyenv/shims/Jupiter

この後、下記コマンドを試すも消えず。

$ pip uninstall jupyter
Uninstalling jupyter-1.0.0:
.
Successfully uninstalled jupyter-1.0.0

$ pip uninstall jupyter
Skipping jupyter as it is not installed.

$ which jupyter
/Users/****/.pyenv/shims/jupyter

成功例

下記コマンドでコアをアンインストールに指定することで、アンインストールできた。

$ pip uninstall jupyter_core 
Successfully uninstalled jupyter-core-4.4.0
$ which jupyter
何も無し

補足

$ pip3 install jupyter の最後の行にjupyter-coreがインストールされていることが確認できる。

Installing collected packages: jupyter, jupyter-core
Successfully installed jupyter-1.0.0 jupyter-core-4.4.0
bannerAds