SSL: TLSV1_ALERT_PROTOCOL_VERSION this error is very crucial while performing python programs, this happens due to the incompatibility of devices or using the old versions. This article explains the detailed solution to the SSL: TLSV1_ALERT_PROTOCOL_VERSION and step by step guide to recover from the issue. This solution is applicable to OS X.
First check in the Terminal which version of OpenSSL you have:
If your OpenSSL is old then this solution may not work for you so, first, you have to update the python to the latest version. An important step for updating python is as follows.
If you are facing problems related to the path or version of python then you can create new virtualenv to make sure newest version of python is installed in your computer system.
So, in summary, we can say that if you are getting a TLSV1_ALERT_PROTOCOL_VERSION error in Python, then it may happen because of your system cant support TLS v1.2. To add support, you can check for following things.