After installing anaconda – command not found: jupyter

Question:

I have installed anaconda on my MAC laptop, and tried to run jupyter notebook to install it, but I get error jupyter command not found.

Asked By: Ludwig

||

Answers:

You need to activate your conda environment (source bin/activate) and then do

$ pip install jupyter # Alternatively, you can do `conda install jupyter`
$ jupyter notebook # to actually run the notebook server
Answered By: ffledgling

I had this same problem on my Mac OS. I’m also new to Python, so forgive me if this is an obvious solution.
What solved it for me was installing Python with the ‘install for me only’ option rather than the hard-drive option. If it tells you you can’t, then reselect it. After that, the command jupyter notebook opened without a problem.
Hope it can help someone!

How to

Installation Screenshot

Answered By: Lisa Olson

I ran into the same problem try this instead

jupyter-notebook
Answered By: luii

Add $HOME/anaconda3/bin to your $PATH and jupyter-notebook should work. There are a ton of other binaries you can lookup in that folder as well.

export PATH=$HOME/anaconda3/bin:$PATH

then

jupyter-notebook
Answered By: Chirag Arora

@ffledgling anwser did not work for me. What did solve was to install jupyter using conda:

conda install jupyter

That did the trick. Right after the installation finished I went with

jupyter notebook

as my next command and saw the server setup and the browser page opening.

Answered By: Vitor Navarro

You should first have conda in your PATH environment. You can achieve it taking a look on this answer.

Now you just need to run jupyter notebook.

Answered By: Filipe

It could be as simple as opening a new Terminal window.

Answered By: Olivier de Jonge

I had the same issue on Mac. I am using Miniconda
Opened ~/.zshrc profile on nano as, nano ~/.zshrc
and added the location of miniconda on my mac as the last line of the ~/.zshrc as:

export PATH="/usr/local/Caskroom/miniconda/base/bin:$PATH"

solves the issue easily.

Answered By: vigviswa

Open a new terminal and try again, it worked for me. This is written somewhere in the installation guide “For this change to become active, you have to open a new terminal.”

Answered By: Simran Bhake

If your issue is happening after running conda install jupyter, you can use conda init zsh to configure the ~/.zshrc automatically so that when you just type jupyter notebook on terminal, it can find it.

For Windows

After you can successfully run conda from powershell, you can install jupyter with:
conda install jupyter
command. Then re-open powershell and run
conda run jupyter notebook.

Answered By: tufanlodos

If it’s a fresh installation. Close the the terminal and re-open

  • You don’t have to install jupyter explicitly. Anaconda does for you.
  • Ensure the environment is activated first.
  • If you selected Yes when prompted "Do you wish the installer to initialize Anaconda3 by running conda init? [yes|no]" during installation, prepend your commands with conda
  • mycomp@55:~$ conda activate
  • (base) mycomp@55:~$ jupyter notebook
Answered By: 7guyo

After installing Anaconda on windows 10, you can use Anaconda prompt from start menu to activate a conda enabled terminal window.
You can run Jupyter from that window using:

jupyter notebook
Answered By: Mohammad Fasha