当前位置: 代码迷 >> 综合 >> pycharm报错:Error: failed to send plot to http://127.0.0.1:63342
  详细解决方案

pycharm报错:Error: failed to send plot to http://127.0.0.1:63342

热度:99   发布时间:2023-11-27 20:57:42.0

在pycharm使用matplotlib绘图无法在SciView显示!报错信息如下:

Error: failed to send plot to http://127.0.0.1:63342
Traceback (most recent call last):File "C:\Program Files\JetBrains\PyCharm 2021.1\plugins\python\helpers\pycharm_display\datalore\display\display_.py", line 60, in _send_display_messageurlopen(url, buffer)File "C:\Users\86166\AppData\Local\Programs\Python\Python39\lib\urllib\request.py", line 214, in urlopenreturn opener.open(url, data, timeout)File "C:\Users\86166\AppData\Local\Programs\Python\Python39\lib\urllib\request.py", line 517, in openresponse = self._open(req, data)File "C:\Users\86166\AppData\Local\Programs\Python\Python39\lib\urllib\request.py", line 534, in _openresult = self._call_chain(self.handle_open, protocol, protocol +File "C:\Users\86166\AppData\Local\Programs\Python\Python39\lib\urllib\request.py", line 494, in _call_chainresult = func(*args)File "C:\Users\86166\AppData\Local\Programs\Python\Python39\lib\urllib\request.py", line 1371, in http_openreturn self.do_open(http.client.HTTPConnection, req)File "C:\Users\86166\AppData\Local\Programs\Python\Python39\lib\urllib\request.py", line 1346, in do_openr = h.getresponse()File "C:\Users\86166\AppData\Local\Programs\Python\Python39\lib\http\client.py", line 1347, in getresponseresponse.begin()File "C:\Users\86166\AppData\Local\Programs\Python\Python39\lib\http\client.py", line 307, in beginversion, status, reason = self._read_status()File "C:\Users\86166\AppData\Local\Programs\Python\Python39\lib\http\client.py", line 268, in _read_statusline = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")File "C:\Users\86166\AppData\Local\Programs\Python\Python39\lib\socket.py", line 704, in readintoreturn self._sock.recv_into(b)
ConnectionAbortedError: [WinError 10053] 你的主机中的软件中止了一个已建立的连接。
Error: failed to send plot to http://127.0.0.1:63342

解决方法:
点击pycharm的设置setting——>tools——>python scientific,然后取消勾选??Show plot in tool windosw.

  相关解决方案