I am trying to install BeautifulSoup4 using the command pip install BeautifulSoup4
, as per the bs documentation here:
https://www.crummy.com/software/BeautifulSoup/#Download
I am using Mac OS X 10.7.5, and python 2.7.12
When I run the command in Terminal I get the error:
AttributeError: '_socketobject' object has no attribute 'set_tlsext_host_name'
Can anyone suggest what I'm doing wrong? Thanks in advance.
EDIT:
In light of comments I have tried to run sudo pip install pyopenssl
however I get the same 'socketobject' error.