Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/314.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python jupyter giving 404:在WIndows 7上找不到错误_Python_Jupyter - Fatal编程技术网

Python jupyter giving 404:在WIndows 7上找不到错误

Python jupyter giving 404:在WIndows 7上找不到错误,python,jupyter,Python,Jupyter,我在Win7上安装了anaconda PYTHON 2.7 64位,然后使用 conda update conda 后来安装 conda install jupyter 当我尝试使用windows上的同一驱动器运行时 jupyter notebook 它在Firefox和美国推出 404: Not Found 命令上写着 Refusing to serve hidden directory via 404 Error 需要做些什么才能启动它 更新: anaconda安装有一个运行jup

我在Win7上安装了anaconda PYTHON 2.7 64位,然后使用

conda update conda
后来安装

conda install jupyter
当我尝试使用windows上的同一驱动器运行时

jupyter notebook
它在Firefox和美国推出

404: Not Found
命令上写着

Refusing to serve hidden directory via 404 Error
需要做些什么才能启动它

更新: anaconda安装有一个运行jupyter的快捷方式,它是这样工作的——但“jupyter笔记本”的版本是404:


它说它拒绝提供隐藏目录。尝试从非隐藏目录启动它

手动将目录更改为Anaconda2。 例如cd蟒蛇2
然后运行-jupyter笔记本

我发现一个简单的原因可能是试图从驱动器的根目录运行jupyter-从C:\运行失败。Cricboy007建议创建一个文件夹(没有特定的名称,我称之为我的笔记本),并在使用cd后运行Jupyter,使工作目录适合我。

对于windows 7,anaconda由管理员配置文件安装。为用户创建的快捷方式在“开始”菜单文件夹的“开始位置”(工作目录)中有错误的users\文件夹。 更正快捷方式的“开始”条目,它就可以工作了


还要注意users\username\.anaconda\navigator\defaults-1.0.0.ini,具有类似的路径条目。

我遇到了相同的404错误,并通过执行以下操作解决了它:

右键单击jupyter notbook快捷方式>属性>将“起始位置:”的值更改为Anaconda安装中的路径(例如,D:\Anaconda2\Notebook)


如果您是从命令行运行的,将目录更改为anaconda文件夹中的目录也会起作用

我遇到了同样的问题,如上所述,问题出现在根目录中。我只是有一个坏习惯,打开CMD时会立即从根目录开始。如果我把它放在用户文件夹中,让它作为C:\Users[me]>jupyter笔记本运行,它就可以正常工作。

我所做的:

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

它解决了所有问题。

您必须首先设置环境变量:
C:\Windows\system32>conda create--name test\u jupyter
是否继续([y]/n)?y
C:\Windows\system32>激活测试 (test\u jupyter)C:\Windows\system32>jupyter笔记本
它将出现在您的默认浏览器中。

在命令行(Windows 10)中出现了相同的问题。以下是我为解决这个问题所做的:

  • 完全卸载Anaconda
  • 删除相应的路径/环境变量
  • 重新安装Anaconda(我只是为自己,而不是为所有用户)
  • 搜索桌面应用程序“Jupyter DESKTOP”并启动它
  • 瞧:Jupyter启动并运行了
    我在Windows7、Python3和IE上遇到了与默认浏览器相同的问题。经过斗争和改变许多设置后,我最终将默认浏览器更改为Chrome,它正确地显示了页面。

    我遇到了这种情况。当我试图打开jupyterlab时,Anaconda告诉我:

    [I 10:01:41.587 LabApp] The port 8888 is already in use, trying another port.
    [I 10:01:41.587 LabApp] The port 8889 is already in use, trying another port.
    [I 10:01:41.588 LabApp] The port 8890 is already in use, trying another port.
    [I 10:01:41.608 LabApp] JupyterLab beta preview extension loaded from D:\Anaconda\install\lib\site-packages\jupyterlab
    [I 10:01:41.608 LabApp] JupyterLab application directory is D:\Anaconda\install\share\jupyter\lab
    [W 10:01:41.619 LabApp] Error loading server extension jupyterlab
    Traceback (most recent call last):
    File "D:\Anaconda\install\lib\site-packages\jupyterlab\commands.py", line 321, in __init__
    self._run(['node', 'node-version-check.js'], cwd=HERE, quiet=True)
    File "D:\Anaconda\install\lib\site-packages\jupyterlab\commands.py", line 1165, in _run
    proc = Process(cmd, **kwargs)
    File "D:\Anaconda\install\lib\site-packages\jupyterlab\process.py", line 73, in __init__
    self.proc = self._create_process(cwd=cwd, env=env)
    File "D:\Anaconda\install\lib\site-packages\jupyterlab\process.py", line 131, in _create_process
    cmd[0] = which(cmd[0], kwargs.get('env'))
    File "D:\Anaconda\install\lib\site-packages\jupyterlab\jlpmapp.py", line 59, in which
    raise ValueError(msg)
    ValueError: Please install nodejs 5+ and npm before continuing installation. nodejs may be installed using conda or directly from the nodejs website.
    
    During handling of the above exception, another exception occurred:
    
    Traceback (most recent call last):
    File "D:\Anaconda\install\lib\site-packages\notebook\notebookapp.py", line 1454, in init_server_extensions
    func(self)
    File "D:\Anaconda\install\lib\site-packages\jupyterlab\extension.py", line 111, in load_jupyter_server_extension
    info = get_app_info(app_dir)
    File "D:\Anaconda\install\lib\site-packages\jupyterlab\commands.py", line 244, in get_app_info
    handler = _AppHandler(app_dir, logger)
    File "D:\Anaconda\install\lib\site-packages\jupyterlab\commands.py", line 324, in __init__
    raise ValueError(msg)
    ValueError: Please install nodejs 5+ and npm before continuing installation. nodejs may be installed using conda or directly from the nodejs website.
    [I 10:01:41.709 LabApp] Serving notebooks from local directory: C:\Users\user
    [I 10:01:41.709 LabApp] 0 active kernels
    [I 10:01:41.710 LabApp] The Jupyter Notebook is running at:
    [I 10:01:41.710 LabApp] http://localhost:8891/?token=a3d823839f1107857f79c15ae9d6a109b046b98621186073
    [I 10:01:41.710 LabApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
    [C 10:01:41.711 LabApp] 
    
    Copy/paste this URL into your browser when you connect for the first time,
    to login with a token:
    http://localhost:8891/?token=a3d823839f1107857f79c15ae9d6a109b046b98621186073
    [I 10:01:41.761 LabApp] Accepting one-time-token-authenticated connection from ::1
    [W 10:01:41.833 LabApp] 404 GET /lab?token=e0fc453fcb7d3a4a22f7042bacf336bea5e90678af55b72f (::1) 72.00ms referer=None
    
    chrome显示404:未找到。当我在anaconda打开jupyter时,我也遇到了这样的情况。
    所以我更新了jupyterlab和jupyter,然后它们都变好了。因此,这种情况可能是版本问题。

    由于代理设置,我遇到了这个问题。我正在通过代理访问本地Jupyter服务器。在代理的排除列表中添加本地服务器的IP地址为我解决了此问题

    我使用的是Windows10机器,Jupyter服务器在本地网络(Linux机器)上

    如何将本地服务器的IP添加到代理(windows 10)的排除列表中:

    设置>网络和Internet>代理


    它是如何隐藏的?我从D dir启动它-Anaconda在D:\Anaconda \-哪一个是非隐藏dir?我现在通过更改dir使它工作了-如何设置路径?路径D:\Anaconda\Scripts\是在安装时添加的?请发布您的答案或检查正确的现有答案。奇怪的是,我在Anaconda上遇到了这个问题,但在Winpython发行版上没有。使用anaconda时,您不应该位于驱动器的根目录上。我在使用anaconda运行Jupyter时遇到了相同的问题。这也解决了我的问题,在D:drive中创建了一个新目录,并遵循本教程->为我工作:)您好,我目前在windows 7上。为了解决这个问题,我将google chrome设置为默认浏览器。效果很好。
    [I 10:01:41.587 LabApp] The port 8888 is already in use, trying another port.
    [I 10:01:41.587 LabApp] The port 8889 is already in use, trying another port.
    [I 10:01:41.588 LabApp] The port 8890 is already in use, trying another port.
    [I 10:01:41.608 LabApp] JupyterLab beta preview extension loaded from D:\Anaconda\install\lib\site-packages\jupyterlab
    [I 10:01:41.608 LabApp] JupyterLab application directory is D:\Anaconda\install\share\jupyter\lab
    [W 10:01:41.619 LabApp] Error loading server extension jupyterlab
    Traceback (most recent call last):
    File "D:\Anaconda\install\lib\site-packages\jupyterlab\commands.py", line 321, in __init__
    self._run(['node', 'node-version-check.js'], cwd=HERE, quiet=True)
    File "D:\Anaconda\install\lib\site-packages\jupyterlab\commands.py", line 1165, in _run
    proc = Process(cmd, **kwargs)
    File "D:\Anaconda\install\lib\site-packages\jupyterlab\process.py", line 73, in __init__
    self.proc = self._create_process(cwd=cwd, env=env)
    File "D:\Anaconda\install\lib\site-packages\jupyterlab\process.py", line 131, in _create_process
    cmd[0] = which(cmd[0], kwargs.get('env'))
    File "D:\Anaconda\install\lib\site-packages\jupyterlab\jlpmapp.py", line 59, in which
    raise ValueError(msg)
    ValueError: Please install nodejs 5+ and npm before continuing installation. nodejs may be installed using conda or directly from the nodejs website.
    
    During handling of the above exception, another exception occurred:
    
    Traceback (most recent call last):
    File "D:\Anaconda\install\lib\site-packages\notebook\notebookapp.py", line 1454, in init_server_extensions
    func(self)
    File "D:\Anaconda\install\lib\site-packages\jupyterlab\extension.py", line 111, in load_jupyter_server_extension
    info = get_app_info(app_dir)
    File "D:\Anaconda\install\lib\site-packages\jupyterlab\commands.py", line 244, in get_app_info
    handler = _AppHandler(app_dir, logger)
    File "D:\Anaconda\install\lib\site-packages\jupyterlab\commands.py", line 324, in __init__
    raise ValueError(msg)
    ValueError: Please install nodejs 5+ and npm before continuing installation. nodejs may be installed using conda or directly from the nodejs website.
    [I 10:01:41.709 LabApp] Serving notebooks from local directory: C:\Users\user
    [I 10:01:41.709 LabApp] 0 active kernels
    [I 10:01:41.710 LabApp] The Jupyter Notebook is running at:
    [I 10:01:41.710 LabApp] http://localhost:8891/?token=a3d823839f1107857f79c15ae9d6a109b046b98621186073
    [I 10:01:41.710 LabApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
    [C 10:01:41.711 LabApp] 
    
    Copy/paste this URL into your browser when you connect for the first time,
    to login with a token:
    http://localhost:8891/?token=a3d823839f1107857f79c15ae9d6a109b046b98621186073
    [I 10:01:41.761 LabApp] Accepting one-time-token-authenticated connection from ::1
    [W 10:01:41.833 LabApp] 404 GET /lab?token=e0fc453fcb7d3a4a22f7042bacf336bea5e90678af55b72f (::1) 72.00ms referer=None