[英]I am trying to load dataset using seaborn showing URLError: <urlopen error [WinError 10060]
df = sns.load_dataset("tips") df = sns.load_dataset("提示")
I am trying to load dataset using seaborn showing URLError:我正在尝试使用显示 URLError 的 seaborn 加载数据集:
throws this error after a few seconds几秒钟后抛出此错误
TimeoutError Traceback (most recent call last)
File ~\AppData\Local\Programs\Python\Python311\Lib\urllib\request.py:1348, in AbstractHTTPHandler.do_open(self, http_class, req, **http_conn_args)
1347 try:
-> 1348 h.request(req.get_method(), req.selector, req.data, headers,
1349 encode_chunked=req.has_header('Transfer-encoding'))
1350 except OSError as err: # timeout error
File ~\AppData\Local\Programs\Python\Python311\Lib\http\client.py:1282, in HTTPConnection.request(self, method, url, body, headers, encode_chunked)
1281 """Send a complete request to the server."""
-> 1282 self._send_request(method, url, body, headers, encode_chunked)
File ~\AppData\Local\Programs\Python\Python311\Lib\urllib\request.py:241, in urlretrieve(url, filename, reporthook, data)
224 """
225 Retrieve a URL into a temporary location on disk.
226
(...)
237 data file as well as the resulting HTTPMessage object.
238 """
239 url_type, path = _splittype(url)
--> 241 with contextlib.closing(urlopen(url, data)) as fp:
242 headers = fp.info()
244 # Just return the local path and the "headers" for file://
245 # URLs. No sense in performing a copy unless requested.
URLError: <urlopen error [WinError 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond>
I tried changing the inte.net connection and also tried unchecking the proxy server in LAN settings我尝试更改 inte.net 连接,还尝试取消选中 LAN 设置中的代理服务器
The error 10060 means you cannot connect to the remote place.错误 10060 表示您无法连接到远程位置。 There might be several reasons of such an error:
出现这种错误可能有多种原因:
pip install seaborn
.pip install seaborn
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.