Can't install anything new into HA on a mac - ImportError: bad magic number in 'email'

I had a working HA and a couple of weeks ago, i found HA couldn’t install any new components. I think it might have happen when I install the imap email components. I tried to uninstall the full HA and reinstall today and couldn’t install any components. From the first run of HASS I got

To not see this card popup in the future, edit your config in
configuration.yaml and disable the introduction component. @ 2018-01-16T20:24:45.544009-08:00>>
INFO:homeassistant.core:Bus:Handling <Event service_executed[L]: service_call_id=4511070360-1>
INFO:homeassistant.util.package:Attempting install of home-assistant-frontend==20180112.0
ERROR:homeassistant.util.package:Unable to install package home-assistant-frontend==20180112.0: Traceback (most recent call last):
File “/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pip/_vendor/requests/packages/urllib3/connection.py”, line 12, in
from http.client import HTTPConnection as _HTTPConnection
File “/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/http/client.py”, line 71, in
import email.parser
ImportError: bad magic number in ‘email’: b’\x03\xf3\r\n’

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File “/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pip/_vendor/requests/packages/init.py”, line 27, in
from . import urllib3
File “/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pip/_vendor/requests/packages/urllib3/init.py”, line 8, in
from .connectionpool import (
File “/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pip/_vendor/requests/packages/urllib3/connectionpool.py”, line 35, in
from .connection import (
File “/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pip/_vendor/requests/packages/urllib3/connection.py”, line 15, in
from httplib import HTTPConnection as _HTTPConnection
ModuleNotFoundError: No module named ‘httplib’