I have `fiddle.py` containing 4 lines

```
import requests

url = "https://randomuser.me/api/"
locations = requests.get(url,verify=False).json()

print locations

```

When I run it, I kept getting

> 
> requests.exceptions.SSLError: [SSL: SSLV3\_ALERT\_HANDSHAKE\_FAILURE] sslv3 alert handshake failure (\_ssl.c:590)
> 
> 
> 

---

**Try #1**

Set `verify=False`

Run the code, Same Error.

---

**Try #2**

Run `sudo pip install --upgrade requests`

Run the code, same error.

---

**Try #3**

Run

`sudo pip install --upgrade pip`

and

`sudo pip install requests[security]`

Run the code, different error.

> 
> requests.exceptions.SSLError: ("bad handshake: Error([('SSL routines', 'SSL23\_GET\_SERVER\_HELLO', 'sslv3 alert handshake failure')],)",)
> 
> 
> 

---

Details
=======

* Python 2.7.10
* OpenSSL 0.9.8zh 14 Jan 2016
* Mac OS X 10.11.6

How can I debug this?