jupyter giving 404: Not Found error on WIndows 7

2019-04-06 01:20发布

I installed anaconda PYTHON 2.7 64bit on Win 7 and then updated using

conda update conda

Later installed

conda install jupyter

When I tried to run from the same drive on windows using

jupyter notebook

it launches on Firefox and states

404: Not Found

On the command it says

Refusing to serve hidden directory via 404 Error

What needs to be done to get it launched?

Update: The anaconda install has a shortcut to run jupyter and it works that way - but gives 404 for "jupyter notebook":

d:\Anaconda\Scripts/ipython-script.py" notebook

11条回答
时光不老,我们不散
2楼-- · 2019-04-06 01:23

I was having the same 404 error and solved it by doing the following:

right click the jupyter notbook shortcut > properties > change the value of "Start in:" to a path within your Anaconda install (e.g., D:\Anaconda2\Notebooks).

If you are running from the command line, changing directory to within the anaconda folder should work too

查看更多
时光不老,我们不散
3楼-- · 2019-04-06 01:23

Manually change the directory to Anaconda2. eg. cd Anaconda2 then run - jupyter notebook

查看更多
劳资没心,怎么记你
4楼-- · 2019-04-06 01:24

What I did:

sudo chmod -R 777 /path/to/my/folder

and it resolved all the issues.

查看更多
乱世女痞
5楼-- · 2019-04-06 01:25

You must first set the environment variables:
C:\Windows\system32>conda create --name test_jupyter
Proceed([y]/n)? y
C:\Windows\system32>activate test_jupyter
(test_jupyter) C:\Windows\system32> jupyter notebook
it will appear in your default browser..

查看更多
放荡不羁爱自由
6楼-- · 2019-04-06 01:27

I found a simple cause of this could be trying to run Jupyter from the root of a drive - running it from C:\ failed. Cricboy007's suggestion to create a folder (no particular name, I called mine notebook) and run Jupyter once you've used cd to make that the working directory worked for me.

查看更多
疯言疯语
7楼-- · 2019-04-06 01:28

Had the same issue from command line (Windows 10). Here is what I did to resolve it:

  1. Fully uninstall Anaconda
  2. Remove respective PATH / ENVIRONMENT variables
  3. Reinstall Anaconda (I did just for myself, not for all users)
  4. Search for DESKTOP application "Jupyter Desktop" and start it
  5. Voila: Jupyter is up and running!
查看更多
登录 后发表回答