Mac OS X “Host is Down” with Curl, Python, PIP,etc

If you’re connected to internet and still some CLI tools such as curl, python, easy_install and pip fail with errors such as:

curl: (7) Failed to connect to IP: Host is down

error: [Errno 64] Host is down

This is while host is ping from command line and browser connects too. First check you don’t have any proxy settings. (echo $http_proxy)

If you don’t have any proxy settings, and browser accesses the site, well then it might be because of some strange rules in LittleSnitch in the case you have one running. Try to stop LittleSnitch network monitor and give it a go.