Jupyter Notebook:终端不可用

Fat*_*ati 7 terminal python-3.x jupyter

昨天我在启动 Jupyter Notebook 时遇到了问题(我突然收到通知,python 无法正常工作,但在一切正常之前......)。所以我决定升级到最新的python版本。现在我可以启动 jupyter notebook,但是我收到以下错误消息:

终端不可用(错误是 No module named 'winpty.cywinpty')

我按照这里的 setps 描述

但仍然收到此错误消息。有没有办法,解决这个问题?或者有人有建议吗?

编辑:这是我从 cmd 运行 jupyter notebook 时得到的:

[W 14:17:04.451 NotebookApp] Terminals not available (error was No module named 'winpty.cywinpty')
[I 14:17:05.073 NotebookApp] JupyterLab extension loaded from C:\Users\Fati\AppData\Local\Programs\Python\Python39\lib\site-packages\jupyterlab
[I 14:17:05.073 NotebookApp] JupyterLab application directory is C:\Users\Fati\AppData\Local\Programs\Python\Python39\share\jupyter\lab
[I 14:17:05.323 NotebookApp] Serving notebooks from local directory: C:\Users\Fati
[I 14:17:05.324 NotebookApp] Jupyter Notebook 6.1.5 is running at:
[I 14:17:05.326 NotebookApp] http://localhost:8888/?token=8e859b3108946a8310e1e5ceed6d2186c8731261fc5161eb
[I 14:17:05.330 NotebookApp]  or http://127.0.0.1:8888/?token=8e859b3108946a8310e1e5ceed6d2186c8731261fc5161eb
[I 14:17:05.331 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[C 14:17:05.448 NotebookApp]
Run Code Online (Sandbox Code Playgroud)

Sco*_*rts 12

我在使用 Python 3.9 时遇到了同样的问题,并通过使用 pipwin 安装 wheel 和 pywinpty 来解决它:

pip install pipwin

pip uninstall wheel

pipwin install wheel

pip uninstall pywinpty

pipwin install pywinpty

重新启动 Jupyter 后,错误消失了。