无法使用Jupyter Lab或Jupyter Notebook运行任何ipynb文件(FileNotFoundError:[WinError 2]系统找不到指定的文件) [英] Can't run any ipynb files using Jupyter Lab or Jupyter Notebook (FileNotFoundError: [WinError 2] The system cannot find the file specified)

查看:414
本文介绍了无法使用Jupyter Lab或Jupyter Notebook运行任何ipynb文件(FileNotFoundError:[WinError 2]系统找不到指定的文件)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Win10上运行JupyterLab/JupyterNotebook,并在Windows 10的侧面运行Python和PyCharm.每当我启动JupyterLab/JupyterNotebook时,都会出现以下错误.我尝试重新安装Anaconda-distribution或任何其他Python实例,但是每次启动JupyterLab/Notebook时,它都会给我同样的错误.我也尝试过使用Win 7在远程服务器上运行它,但它给了我完全相同的错误.我的一部分认为安装Anaconda,Python和PyCharm时犯了相同的错误,现在我无法还原它.有什么建议吗?

I have JupyterLab/JupyterNotebook running on Win10, along with Python and PyCharm on the side on Windows 10. Whenever I launch JupyterLab/JupyterNotebook I get the error stated below. I have tried reinstalling the Anaconda-distribution or any other instances of Python but it gives me the same error every time I launch JupyterLab/Notebook. I have also tried running it on a remote server with Win 7 but it gives me the exact same error. Part of me thinks that I made the same mistake while installing Anaconda, Python, and PyCharm and now I can't revert it back. Any suggestions?

Traceback (most recent call last):
  File "E:\anaconda3\lib\site-packages\tornado\web.py", line 1543, in _execute
    result = yield result
  File "E:\anaconda3\lib\site-packages\tornado\gen.py", line 1099, in run
    value = future.result()
  File "E:\anaconda3\lib\site-packages\tornado\gen.py", line 1107, in run
    yielded = self.gen.throw(*exc_info)
  File "E:\anaconda3\lib\site-packages\notebook\services\sessions\handlers.py", line 73, in post
    type=mtype))
  File "E:\anaconda3\lib\site-packages\tornado\gen.py", line 1099, in run
    value = future.result()
  File "E:\anaconda3\lib\site-packages\tornado\gen.py", line 1107, in run
    yielded = self.gen.throw(*exc_info)
  File "E:\anaconda3\lib\site-packages\notebook\services\sessions\sessionmanager.py", line 79, in create_session
    kernel_id = yield self.start_kernel_for_session(session_id, path, name, type, kernel_name)
  File "E:\anaconda3\lib\site-packages\tornado\gen.py", line 1099, in run
    value = future.result()
  File "E:\anaconda3\lib\site-packages\tornado\gen.py", line 1107, in run
    yielded = self.gen.throw(*exc_info)
  File "E:\anaconda3\lib\site-packages\notebook\services\sessions\sessionmanager.py", line 92, in start_kernel_for_session
    self.kernel_manager.start_kernel(path=kernel_path, kernel_name=kernel_name)
  File "E:\anaconda3\lib\site-packages\tornado\gen.py", line 1099, in run
    value = future.result()
  File "E:\anaconda3\lib\site-packages\tornado\gen.py", line 315, in wrapper
    yielded = next(result)
  File "E:\anaconda3\lib\site-packages\notebook\services\kernels\kernelmanager.py", line 148, in start_kernel
    super(MappingKernelManager, self).start_kernel(**kwargs)
  File "E:\anaconda3\lib\site-packages\jupyter_client\multikernelmanager.py", line 110, in start_kernel
    km.start_kernel(**kwargs)
  File "E:\anaconda3\lib\site-packages\jupyter_client\manager.py", line 259, in start_kernel
    **kw)
  File "E:\anaconda3\lib\site-packages\jupyter_client\manager.py", line 204, in _launch_kernel
    return launch_kernel(kernel_cmd, **kw)
  File "E:\anaconda3\lib\site-packages\jupyter_client\launcher.py", line 128, in launch_kernel
    proc = Popen(cmd, **kwargs)
  File "E:\anaconda3\lib\subprocess.py", line 709, in __init__
    restore_signals, start_new_session)
  File "E:\anaconda3\lib\subprocess.py", line 997, in _execute_child
    startupinfo)
FileNotFoundError: [WinError 2] The system cannot find the file specified

推荐答案

似乎与nb_conda有关.使用以下命令重新安装nb_conda后,它对我有用.

It seemed it had something to do with nb_conda. Once I reinstalled nb_conda using the command below, it worked for me.

conda install nb_conda

这篇关于无法使用Jupyter Lab或Jupyter Notebook运行任何ipynb文件(FileNotFoundError:[WinError 2]系统找不到指定的文件)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆