AttributeError: VerifiedHTTPSConnection instance does not have the attribute '_tunnel_host'

When executing many commands, for example.   sudo pip install requests==1.2.3 the following error occurs It seems that a connection error


/usr/local/bin/pip run on Sun Jan  5 19:13:26 2014
Downloading/unpacking requests==1.2.3
  Getting page https://pypi.python.org/simple/requests/
Cleaning up...
  Removing temporary dir /private/tmp/pip_build_root...
Exception:
....
AttributeError: VerifiedHTTPSConnection instance has no attribute '_tunnel_host'
+4
source share
1 answer

See question 485 about aws-cli for the same symptom. You should take a look at the version of Python you are using. It seems that an older version of Python (<2.6.3) is being used. You may need to install a newer version of Python.

+3
source

All Articles