Jupyter Notebook-URLError:<URLopen错误未知URL类型:https>

时间:2019-06-27 13:18:59

标签: python python-3.x url jupyter-notebook urllib

我一直在几个python程序中使用urllib库来自动执行下载。但是,昨天我尝试运行它,它给了我这个错误:

URLError: <urlopen error unknown url type: https>

此代码行上发生错误:

 response = x.urlopen('https://www.nsf.gov/')

这些是我的进口货

from urllib.request import urlopen as uReq
import urllib.request as x

昨天我花了一整天试图弄清楚。任何帮助将不胜感激。

0 个答案:

没有答案