[PYTHON] AttributeError: module'urllib' has no attribute'request' error in urllib.request

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

AttributeError: module'urllib' has no attribute'request' error in urllib.request
[Dlib] Attribute Error: module'dlib' has no attribute ...
"AttributeError: module'google.cloud.vision' has no attribute'types'" in Cloud Vision API (GCP vision AI)
Dealing with Python error "Attribute Error: module'scipy.misc' has no attribute'imresize'" in deep learning
[Wandb] Attribute Error: module'wandb' has no attribute'init'
Import Error in Python3: No module named'xxxxx'
When'DataFrame' object has no attribute'ix' appears in pandas
ModuleNotFoundError: No module named'_bz2' error in pyenv Python
AttributeError: module ‘torch.utils’ has no attribute ‘data’ solution
Solution when module'XXX' has no attribute'XXX' in Python
Error in random.shuffle
Error in Pyinstaller
Error in TensorBoard
"No handler was ready to authenticate" error in django-ses
AttributeError: I was addicted to'module' object has no attribute'MyTestCase'
AttributeError: The story of solving module'tensorflow' has no attribute'log'.