pycharm报错:Error: failed to send plot to http://127.0.0.1:63342
作者:互联网
在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_message
urlopen(url, buffer)
File "C:\Users\86166\AppData\Local\Programs\Python\Python39\lib\urllib\request.py", line 214, in urlopen
return opener.open(url, data, timeout)
File "C:\Users\86166\AppData\Local\Programs\Python\Python39\lib\urllib\request.py", line 517, in open
response = self._open(req, data)
File "C:\Users\86166\AppData\Local\Programs\Python\Python39\lib\urllib\request.py", line 534, in _open
result = 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_chain
result = func(*args)
File "C:\Users\86166\AppData\Local\Programs\Python\Python39\lib\urllib\request.py", line 1371, in http_open
return self.do_open(http.client.HTTPConnection, req)
File "C:\Users\86166\AppData\Local\Programs\Python\Python39\lib\urllib\request.py", line 1346, in do_open
r = h.getresponse()
File "C:\Users\86166\AppData\Local\Programs\Python\Python39\lib\http\client.py", line 1347, in getresponse
response.begin()
File "C:\Users\86166\AppData\Local\Programs\Python\Python39\lib\http\client.py", line 307, in begin
version, status, reason = self._read_status()
File "C:\Users\86166\AppData\Local\Programs\Python\Python39\lib\http\client.py", line 268, in _read_status
line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")
File "C:\Users\86166\AppData\Local\Programs\Python\Python39\lib\socket.py", line 704, in readinto
return 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.
标签:plot,127.0,86166,Programs,py,报错,File,line,Python39 来源: https://blog.csdn.net/qq_53581188/article/details/116130975