What was called import urllib If you use import urllib.request, the error will disappear.
Importing urllib does not import all the modules included in urllib, and I got this error because I had to specify what to use and import it.
Information source https://lists.gt.net/python/python/1215580
Recommended Posts