python pip broken in os x 10.11?

sudo easy_install pip worked, but cant install anything else.


even 'sudo pip install --upgrade pip' gives the same error.


$ sudo pip install ansible

Downloading/unpacking ansible

Cleaning up...

Exception:

Traceback (most recent call last):

File "/Library/Python/2.7/site-packages/pip-1.5.4-py2.7.egg/pip/basecommand.py", line 122, in main

status = self.run(options, args)

File "/Library/Python/2.7/site-packages/pip-1.5.4-py2.7.egg/pip/commands/install.py", line 278, in run

requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)

File "/Library/Python/2.7/site-packages/pip-1.5.4-py2.7.egg/pip/req.py", line 1177, in prepare_files

url = finder.find_requirement(req_to_install, upgrade=self.upgrade)

File "/Library/Python/2.7/site-packages/pip-1.5.4-py2.7.egg/pip/index.py", line 194, in find_requirement

page = self._get_page(main_index_url, req)

File "/Library/Python/2.7/site-packages/pip-1.5.4-py2.7.egg/pip/index.py", line 568, in _get_page

session=self.session,

File "/Library/Python/2.7/site-packages/pip-1.5.4-py2.7.egg/pip/index.py", line 694, in get_page

req, link, "connection error: %s" % exc, url,

TypeError: __str__ returned non-string (type Error)


Storing debug log for failure in /Users/pixel/Library/Logs/pip.log

I had the same problem but realized I could use pip3:

sudo pip3 install <module_name>

python pip broken in os x 10.11?
 
 
Q