I just installed pip, installed a few packages np. I tried this
pip install prettytable Collecting prettytable From cffi callback
The error comes from PyOpenSSL. Either your OpenSSL is too old or too new. Try upgrading or downgrading OpenSSL and PyOpenSSL.
PyOpenSSL
OpenSSL
Reinstalling pyopenssl worked for me:
pip uninstall pyopenssl pip install pyopenssl