我正在尝试使用cartopy在地图上绘制位置,以下是我的代码
import cartopy.crs as crs
import cartopy.feature as cfeature
fig = plt.figure(figsize=(8,6))
ax = fig.add_subplot(1,1,1, projection=crs.PlateCarree())
ax.add_feature(cfeature.COASTLINE)
plt.show()但是我得到了这个错误:
URLError: <urlopen error [Errno -3] Temporary failure in name resolution>这显然和这件事有关
DownloadWarning: Downloading: https://naciscdn.org/naturalearth/110m/physical/ne_110m_coastline.zip
warnings.warn('Downloading: {}'.format(url), DownloadWarning)发布于 2021-09-13 10:19:52
https://naciscdn.org不是有效的DNS条目- DNS查找失败,返回DNS_PROBE_FINISHED_NXDOMAIN。
DNS_PROBE_FINISHED_NXDOMAIN错误通常以小字体显示在一条消息下面,指示网站没有响应,无法在您的浏览器中加载。这意味着您的浏览器在域名系统(DNS)中找不到域的internet协议(IP)
https://stackoverflow.com/questions/69160963
复制相似问题