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

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

    Anyone looking for running jupyter as sudo, when jupyter installed with virtualenv (without sudo) - this worked for me:

    First verify this is a PATH issue:

    Check if the path returned by which jupyter is covered by the sudo user:

    sudo env | grep ^PATH
    

    (As opposed to the current user: env | grep ^PATH)

    If its not covered - add a soft link from it to one of the covered paths. For ex:

    sudo ln -s /home/user/venv/bin/jupyter /usr/local/bin
    

    Now you sould be able to run:

    sudo jupyter notebook
    
    0 讨论(0)
  • 2020-12-04 06:41

    Try

    python -m notebook

    Or, if you used pip3 to install the notebook:

    python3 -m notebook

    On Mac OS Catalina and brewed Python3.7

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

    After installation of Jupyter Notebook on Ubuntu I got below error:

    Exception: Jupyter command 'jupyter-notebook' not found.

    I used simple command it's working for me

    pip install --upgrade --force-reinstall --no-cache-dir jupyter

    Source: http://commandstech.com/how-to-install-jupyter-on-ubuntu16-04-with-pictures-commands-errors-solution/

    After exit from root user then execute :

    jupyter notebook

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

    Here is how it worked for me The PATH for jupyter after installing it using pip is located

    which pip

    /usr/local/bin

    so to run the jupyter notebook i just typed in my terminal:

    jupyter-notebook

    and it worked for me am using parrot os and installed jupyter using pip3

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

    you did not log out and log in ? It should be on your path to execute. If not, pip installed executables in .local, so in a terminal:

     ~/.local/bin/jupyter-notebook
    

    should start notebook

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

    I tried both,

    pip install jupyter
    

    and

    pip3 install jupyter
    

    but finally got it done using

    sudo -H pip install jupyter
    

    execute a command as another user -H

    The -H (HOME) option requests that the security policy set the HOME environment variable to the home directory of the target user (root by default) as specified by the password database. Depending on the policy, this may be the default behavior.

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