gpt4 book ai didi

python-3.x - Jupyter笔记本电脑: Terminals not available

转载 作者:行者123 更新时间:2023-12-03 15:53:59 24 4
gpt4 key购买 nike

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

Terminals not available (error was No module named 'winpty.cywinpty')


我遵循了setps descriebd here:
但是仍然会收到此错误消息。有没有办法解决这个问题?还是有人建议?
编辑:这是当我从cmd运行jupyter笔记本时得到的:
[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]

最佳答案

我在使用Python 3.9时遇到了同样的问题,并通过使用pipwin安装wheel和pywinpty来解决了这个问题:pip install pipwinpip uninstall wheelpipwin install wheelpip uninstall pywinptypipwin install pywinpty重新启动Jupyter后,错误消失了。

关于python-3.x - Jupyter笔记本电脑: Terminals not available,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/64992989/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com