gpt4 book ai didi

windows - ipython控制台 "Exception [WinError 995] The I/O operation has been aborted"中的错误

转载 作者:行者123 更新时间:2023-12-03 11:10:00 28 4
gpt4 key购买 nike

我已经在Windows 10计算机上通过Anaconda安装程序安装了python 3.8.5和ipython 7.19.0,并且在导入keras然后运行ls或任何其他命令时,在Ipython中出现以下错误。
当我导入其他命令或运行其他命令时,会发生这种情况。有人可以提出任何解决方案吗?这与最新的python或Ipython有关吗?或者是其他东西。

C:\Users\AA>ipython
Python 3.8.5 (default, Sep 3 2020, 21:29:08) [MSC v.1916 64 bit (AMD64)]
Type 'copyright', 'credits' or 'license' for more information
IPython 7.19.0 -- An enhanced Interactive Python. Type '?' for help.

In [1]: from keras.models import load_model
2021-01-06 10:36:43.729592: I tensorflow/stream_executor/platform/default/dso_loader.cc:48] Successfully opened dynamic library cudart64_101.dll

In [2]: ls

Unhandled exception in event loop:
File "C:\ProgramData\Anaconda3\lib\asyncio\proactor_events.py", line 768, in _loop_self_reading
f.result() # may raise
File "C:\ProgramData\Anaconda3\lib\asyncio\windows_events.py", line 808, in _poll
value = callback(transferred, key, ov)
File "C:\ProgramData\Anaconda3\lib\asyncio\windows_events.py", line 457, in finish_recv
raise ConnectionResetError(*exc.args)

Exception [WinError 995] The I/O operation has been aborted because of either a thread exit or an application request
Press ENTER to continue...

最佳答案

这似乎是ipython提示工具包中的错误(版本> = 3)
尝试针对您的环境执行此操作:

conda install prompt-toolkit~=2.0
通常,我们可以通过执行以下操作来解决此问题:
py -m pip install -U prompt-toolkit~=2.0
如果这似乎行不通,则在此处对该错误进行了广泛的讨论,并提供了其他一些解决方案: https://github.com/prompt-toolkit/python-prompt-toolkit/issues/1023#issue-534396318
(已在本期讨论: https://github.com/jquast/blessed/issues/121)

关于windows - ipython控制台 "Exception [WinError 995] The I/O operation has been aborted"中的错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/65594323/

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