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.
13 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
-
3Is your conda environment activated? i.e did you do
source bin/activate
? Sep 29, 2016 at 20:58 -
4source bin/activate - that was it! wasn't aware that I need to do that as well! thanks!– LudwigSep 29, 2016 at 21:16
-
2This link talks about how to activate
conda
. TL;DR useexport PATH=~/anaconda2/bin:$PATH
after installing Anaconda Mar 2, 2017 at 19:09 -
1You need to run that command from the anaconda folder (if you've downloaded and installed the package)– NickJun 8, 2019 at 15:03
-
1
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
-
It may be installed into the opt folder now. I configured .zshrc with
export PATH=$HOME/opt/anaconda3/bin:$PATH
and can confirm jupyter-notebook now works. Oct 28, 2019 at 10:24
@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.
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!
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
.
-
Thanks, All we need is to run cmdlets with conda prefix, in my case zsh:"jupyter notebook" "error:upyter notebook cmd could not found". Actual cmd: "conda run jupyter notebook"– cloudcopFeb 8 at 16:33
I ran into the same problem try this instead
jupyter-notebook
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.
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."
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
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
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
.
jupyter notebook
opens a notebook in the browser; it does not install jupyter. that should just come as part of anaconda installation.