How to uninstall jupyter

后端 未结 9 711
独厮守ぢ
独厮守ぢ 2020-11-30 20:53

I have been trying to uninstall jupyter

I have tried the following commands

pip uninstall jupyter
pip3 uninstall jupyter

and

9条回答
  •  -上瘾入骨i
    2020-11-30 21:20

    Try pip uninstall jupyter_core. Details below:

    I ran into a similar issue when my jupyter notebook only showed Python 2 notebook. (no Python 3 notebook)

    I tried to uninstall jupyter by pip unistall jupyter, pi3 uninstall jupyter, and the suggested pip-autoremove jupyter -y.

    Nothing worked. I ran which jupyter, and got /home/ankit/.local/bin/jupyter

    The file /home/ankit/.local/bin/jupyter was just a simple python code:

    #!/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())
    

    Tried to uninstall the module jupyter_core by pip uninstall jupyter_core and it worked.

    Reinstalled jupyter with pip3 install jupyter and everything was back to normal.

提交回复
热议问题