问题描述
Error: failed to send plot to http://127.0.0.1:63342
Traceback (most recent call last):
…
urllib.error.HTTPError: HTTP Error 429: Too Many Requests
在运行代码时,涉及到迭代过程中很多图片,程序执行到一半时停止执行并持续报错。显示的是系统文件错误。
解决办法
具体参考:pycharm报错 Error: failed to send plot to http://127.0.0.1:63342及Connection Refused Error: [Errno 111]
文章列举更多解决办法,更加详细
点击Pycharm右下角Python 3.10 > interpreter Settings > 选择左边菜单栏Tools > Python Scientific > 取消勾选show plots in tool window并保存
可能是执行过程中,Plots处图片堆积太多,导致报错。取消勾选后,程序正常执行。
总结
一步一个脚印,lyy加油!