卸载
pip uninstall -y jupyter
pip uninstall -y jupyter_core
pip uninstall -y jupyter-client
pip uninstall -y jupyter-console
pip uninstall -y notebook
pip uninstall -y qtconsole
pip uninstall -y nbconvert
pip uninstall -y nbformat
安装pip-autoremove(卸载的更干净)
注意安装后使用pip-autoremove时,提示找不到pip-autoremove,此时到python 的安装路径下查找以下安装的pip-autoremove的具体名称是什么,我的是下划线。
pip install pip-autoremove
C:\Users\xy>pip-autoremove jupyter -y
Traceback (most recent call last):
File "<frozen runpy>", line 198, in _run_module_as_main
File "<frozen runpy>", line 88, in _run_code
File "D:\Programs\python\python311\Scripts\pip-autoremove.exe\__main__.py", line 4, in <module>
ModuleNotFoundError: No module named 'pip_autoremove'
C:\Users\xy>pip_autoremove jupyter -y
安装jupyter
C:\Users\xy>pip install jupyter notebook --upgrade --force-reinstall --no-cache-dir