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

前端 未结 24 1049
名媛妹妹
名媛妹妹 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:59

    On Mac Os High Sierra, I installed jupyter with

    python3 -m pip install jupyter    
    

    And then, binary were installed in:

    /Library/Frameworks/Python.framework/Versions/3.6/bin/jupyter-notebook
    
    0 讨论(0)
  • 2020-12-04 07:00

    if you are in a virtual environment, just run this:

    conda install jupyter

    0 讨论(0)
  • 2020-12-04 07:01

    Now in the year of 2020. fix this issue by my side with mac: pip install jupyterlab instead pip install jupyter. there will be an warning before successfully installed keywords: enter image description here

    you can see the path with jupyterlab then you just need to start jupyter notebook by following in path:

    jupyter-lab
    

    notebook will automatic loaded by your default browser.

    0 讨论(0)
  • 2020-12-04 07:04

    Here what I did on Linux mint 19:

    I installed jupyter with:

    pip install jupyter
    

    and command:

    jupyter notebook
    

    didn't work, so with:

    sudo apt install jupyter-notebook
    

    I fixed the issue, jupyter notebook worked then.

    0 讨论(0)
  • 2020-12-04 07:04

    Most generally (in case of jupyter not being in /local/bin) use,

    which jupyter
    

    Example output

    ~/miniconda3/bin/jupyter
    

    to see the path for jupyter, then explicitly use that path with sudo

    sudo ~/miniconda3/bin/jupyter 
    
    0 讨论(0)
  • 2020-12-04 07:07

    On Mac OS you need to export ~/.local/bin inside your $PATH variable.

    # Edit the bash profile:
    $ vim ~/.bash_profile
    
    # Add this line inside ~/.bash_profile:
    export PATH=$PATH:~/.local/bin
    
    # Update the source:
    $ source ~/.bash_profile
    
    # Open Jupyter:
    $ jupyter notebook
    
    0 讨论(0)
提交回复
热议问题