Skip to content

Jupyter notebook not launching - WindowsError[2] : The System cannot find the file specified #2468

@vnnsrk

Description

@vnnsrk

I had installed Anaconda x64 python 2.7 recently, and tried to launch jupyter notebook from my command line. I get the below error.

C:\Users\srinath8n>jupyter notebook
Traceback (most recent call last):
  File "C:\Users\srinath8n\Anaconda2\Scripts\jupyter-notebook-script.py", line 3
, in <module>
    import notebook.notebookapp
  File "C:\Users\srinath8n\Anaconda2\lib\site-packages\notebook\notebookapp.py",
 line 59, in <module>
    from .base.handlers import Template404, RedirectWithParams
  File "C:\Users\srinath8n\Anaconda2\lib\site-packages\notebook\base\handlers.py
", line 41, in <module>
    sys_info = json.dumps(get_sys_info())
  File "C:\Users\srinath8n\Anaconda2\lib\site-packages\notebook\_sysinfo.py", li
ne 94, in get_sys_info
    return pkg_info(path)
  File "C:\Users\srinath8n\Anaconda2\lib\site-packages\notebook\_sysinfo.py", li
ne 76, in pkg_info
    src, hsh = pkg_commit_hash(pkg_path)
  File "C:\Users\srinath8n\Anaconda2\lib\site-packages\notebook\_sysinfo.py", li
ne 52, in pkg_commit_hash
    cwd=pkg_path, shell=True)
  File "C:\Users\srinath8n\Anaconda2\lib\subprocess.py", line 390, in __init__
    errread, errwrite)
  File "C:\Users\srinath8n\Anaconda2\lib\subprocess.py", line 640, in _execute_c
hild
    startupinfo)
WindowsError: [Error 2] The system cannot find the file specified

The path variables (COMSPEC and PATH) are correctly set, the kernel specs are correct and point to the python.exe in the Anaconda2 folder, but still it seems that it cannot find path to the file. Git is properly installed, and I tried to change the subprocess call to 'git.cmd', which did not work. I tried reinstalling anaconda and jupyter, and also removing all other python environments to prevent file name clashes. I tried many of the solutions in stack overflow, and in github, but none seems to solve the issue.

Any help is appreciated. Thanks.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions