How to uninstall Jupyter note book installed by pip3

妖精的绣舞 提交于 2021-02-18 08:36:07

问题


I installed Jupyter notebook using pip3 on OSX. Later, I realised, I should do it through anaconda because it has loads of libraries which I need for my on-line study. So I was about trying to uninstall jupyter, then install anaconda. I see many questions when people messed up uninstall jupyter notebook. So I want to do it correct way.

I wanted to do this way

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

or may be using pip3 instead, anyway, does anyone know if it is the right way to do? I got this from this question

Thanks x


回答1:


I have just tried

$ pip3 install pip-autoremove
$ pip-autoremove jupyter -y

It cleared all. I checked with

pip3 freeze | grep jupyter
which jupyter

Nothing came back. So it's all good.

There is also other suggestion here

Below is copy from the link:(you might need to use pip3) Run conda uninstall notebook nbconvert nbformat ipykernel ipywidgets qtconsole traitlets tornado jupyter_* ipython_genutils jinja2 -y in your terminal. You can use pip uninstall instead of conda uninstall if you aren't using anaconda.




回答2:


You can remove it like this:

pip3 uninstall notebook

You should use conda uninstall if you installed it with conda.




回答3:


to make sure no packages are leftover, you can run pip freeze | grep jupyter and pip3 freeze | grep jupyter . if you get any packages - just remove then with pip uninstall <package-name>



来源:https://stackoverflow.com/questions/45986142/how-to-uninstall-jupyter-note-book-installed-by-pip3

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