[PYTHON] Proxy settings for urllib.request

urllib3==1.25.10 python==3.7.9

When the proxy did not pass

import urllib.request

proxy_set = urllib.request.ProxyHandler({'http' : 'http://123.11.111.111:0000',
                                             'https': 'https://123.11.111.111:0000'})
opener = urllib.request.build_opener(proxy_set)
prox = urllib.request.build_opener()
urllib.request.install_opener(prox)

If you do this, MNIST will be pulled out of keras (tf.keras.datasets, keras.datasets).

that's all

Recommended Posts

Proxy settings for urllib.request
Proxy settings for apt-get are lowercase! !! !! !! !!
Spacemacs settings (for beginners)
Linux, Windows proxy settings
Anaconda 4.4.0 Initial Settings for Windows
Summary of Proxy connection settings
Snippet settings for python jupyter notebook
Emacs settings for Python development environment
urllib.request
Initial settings for Mac (for data analysts)
Japanese settings for matplotlib and Seaborn axes
Jupyter Notebook extension, nbextensions settings for myself
Creating amateur python environment settings (for MAC)
[Django] Settings for sending emails using postfix