python - read - module 'urllib3' has no attribute ...
https://code-examples.net/en/q/3c92beAttributeError: 'module' object has no attribute 'urlopen' (4) A Python 2+3 compatible solution is: import sys if sys.version_info[0] == 3: from urllib.request import urlopen else: # Not Python 3 - today, it is most likely to be Python 2 # But note that this might need an update when Python 4 # might be around one day from urllib import urlopen # Your code where you can use urlopen …