简体   繁体   English

为什么在运行 jupyter notebook 时出现错误?

[英]Why am I getting an error while running jupyter notebook?

I tried to run Jupyter notebook from my Windows command prompt with this command:我尝试使用以下命令从 Windows 命令提示符运行 Jupyter 笔记本:

python -m notebook

But I get the following error:但我收到以下错误:

Traceback (most recent call last):回溯(最近一次通话最后):
File "C:\ProgramData\Anaconda3\lib\runpy.py", line 193, in _run_module_as_main " main ", mod_spec)文件“C:\ProgramData\Anaconda3\lib\runpy.py”,第 193 行,在 _run_module_as_main “ main ”,mod_spec)

File "C:\ProgramData\Anaconda3\lib\runpy.py", line 85, in _run_code _run_code 中的文件“C:\ProgramData\Anaconda3\lib\runpy.py”,第 85 行
exec(code, run_globals)执行(代码,run_globals)

File "C:\ProgramData\Anaconda3\lib\site-packages\notebook_ main _.py", line 3, in文件“C:\ProgramData\Anaconda3\lib\site-packages\ notebook_main_.py ”,第 3 行,在
from notebook import notebookapp as app从笔记本导入 notebookapp 作为应用

File "C:\ProgramData\Anaconda3\lib\site-packages\notebook\notebookapp.py", line 7, in文件“C:\ProgramData\Anaconda3\lib\site-packages\notebook\notebookapp.py”,第 7 行,在
import asyncio导入异步

File "C:\ProgramData\Anaconda3\lib\asyncio_ init _.py", line 26, in文件“C:\ProgramData\Anaconda3\lib\asyncio_init _.py ”,第 26 行,在
from.queues import * from.queues 导入 *

File "C:\ProgramData\Anaconda3\lib\asyncio\queues.py", line 12, in from.tasks import coroutine文件“C:\ProgramData\Anaconda3\lib\asyncio\queues.py”,第 12 行,在 from.tasks 导入协程

File "C:\ProgramData\Anaconda3\lib\asyncio\tasks.py", line 329文件“C:\ProgramData\Anaconda3\lib\asyncio\tasks.py”,第 329 行
fs = {async(f, loop=loop) for f in set(fs)} fs = {async(f, loop=loop) for f in set(fs)}
^ ^
SyntaxError: invalid syntax SyntaxError:无效的语法

I have no idea what to do next.我不知道下一步该做什么。

You don't need to use the CLI for this.您不需要为此使用 CLI。 Instead, you can just click on the Jupiter application where it's available on start menu/ All programs.相反,您只需单击开始菜单/所有程序上可用的 Jupiter 应用程序。 After you open you'll see it's loading CLI and automatically opens using your default browser.打开后,您会看到它正在加载 CLI,并使用您的默认浏览器自动打开。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 在Jupyter Notebook中连接到SQL DB时出现错误 - I am getting an error while connecting to an sql DB in Jupyter Notebook 在 jupyter notebook 中运行时出错 - Getting error while running in jupyter notebook 尝试在 jupyter 笔记本中打印 json 数据时,出现 JSON 解码错误? - While trying to print the json data in jupyter notebook, I am getting JSON decode error? 为什么在 jupyter 笔记本上读取 pdf 文件时出现文件未找到错误? - Why am I getting a file not found error when reading a pdf file on jupyter notebook? 我正在尝试运行 jupyter notebook。 但收到以下错误: - I am trying to run jupyter notebook. but getting the following error: 为了将 chrome 设置为 jupyter 的默认浏览器,我在运行配置文件时遇到错误 - jupyter_notebook_config.py - In order to set chrome as default browser for jupyter , i'm getting error while running config file- jupyter_notebook_config.py 在 Jupyter 笔记本中运行时出现错误 - Getting errors while running in Jupyter notebook 在jupyter中读取csv文件时出现错误 - i am getting error while reading the csv file in jupyter 为什么我在Jupyter Notebook的所有列中仅获得NaN值? - Why am I getting only NaN values in all columns in Jupyter Notebook? 让 Jupyter 笔记本在运行连续进程时监听输入事件? - Getting a Jupyter notebook to listen to input events while running a continuous process?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM