After installing with pip, “jupyter: command not found”

前端 未结 24 1050
名媛妹妹
名媛妹妹 2020-12-04 06:35

After installing with pip install jupyter, terminal still cannot find jupyter notebook.

Ubuntu simply says command not found

相关标签:
24条回答
  • 2020-12-04 06:51

    Execute this in Terminal

    export PATH=~/anaconda3/bin:$PATH
    

    Worked for me on Ubuntu 16.10, Python3, Anaconda3

    UPDATE

    Add path in your ~/.bashrc or ~/.zshrc(if you are using zsh bash) file

    vi ~/.bashrc
    

    add the below line to the file

    PATH=~/path/to/anaconda:$PATH
    

    Close the file with

    esc + : + wq
    
    0 讨论(0)
  • 2020-12-04 06:51
    • Open a terminal window using Ctrl+Alt+T.

    • Run the command gedit ~/.profile.

    • Add the line. export PATH=$PATH:/.local/bin/jupyter-notebook. to the bottom and save.

    • Log out and log in again.

    Hopefully this will work.

    0 讨论(0)
  • 2020-12-04 06:52

    If jupyter run by this command:

    ~/.local/bin/jupyter-notebook
    

    simply run this command in terminal

     export PATH=~/.local/bin:$PATH
    
    0 讨论(0)
  • 2020-12-04 06:52
    pip install --user --upgrade jupyter
    

    Using the above command should do the job in Ubuntu 18.04

    If it doesn't, follow the steps from here

    0 讨论(0)
  • 2020-12-04 06:53

    I'm on Mojave with Python 2.7 and after pip install --user jupyter the binary went here:

    /Users/me/Library/Python//2.7/bin/jupyter
    
    0 讨论(0)
  • 2020-12-04 06:57

    Try "pip3 install jupyter", instead of pip. It worked for me.

    0 讨论(0)
提交回复
热议问题