title: Getting "403 Client Error: SNI is required" in Python requests
body: <p>Unexpectedly, the API &quot;requests&quot; on python code started giving this error:</p>
  <pre><code>Traceback (most recent call last):
  File &quot;&lt;stdin&gt;&quot;, line 1, in &lt;module&gt;
  File &quot;/usr/lib/python2.7/dist-packages/requests/api.py&quot;, line 55, in get
  return request('get', url, **kwargs)
  File &quot;/usr/lib/python2.7/dist-packages/requests/api.py&quot;, line 44, in request
  return session.request(method=method, url=url, **kwargs)
  File &quot;/usr/lib/python2.7/dist-packages/requests/sessions.py&quot;, line 455, in request
  resp = self.send(prep, **send_kwargs)
  File &quot;/usr/lib/python2.7/dist-packages/requests/sessions.py&quot;, line 558, in send
  r = adapter.send(request, **kwargs)
  File &quot;/usr/lib/python2.7/dist-packages/requests/adapters.py&quot;, line 385, in send
  raise SSLError(e)
  requests.exceptions.SSLError: [Errno 1] _ssl.c:510: error:14077438:SSL 
  routines:SSL23_GET_SERVER_HELLO:tlsv1 alert internal error
  </code></pre>
  <p>On searching a number of things, I found a few packages to download. But that is also raising error:
  <a href="https://i.stack.imgur.com/FYEXO.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/FYEXO.png" alt="enter image description here" /></a></p>
  <p>So, the main thing that I noticed is the</p>
  <blockquote>
  <p>Could not fetch URL <a href="https://pypi.python.org/simple/pip/" rel="nofollow noreferrer">https://pypi.python.org/simple/pip/</a>: 403 Client Error: SNI is required</p>
  </blockquote>
  <p>Please advise what it is and how to resolve this. Thanks in advance!</p>