pip install fails with connection error SSL

Standard

I had ssl issues due to company network security related to netscope.
My machine is Mac with python 3.11 and the following command worked for me.

pip config set global.trusted-host \
"pypi.org files.pythonhosted.org pypi.python.org" \
--trusted-host=pypi.python.org \
--trusted-host=pypi.org \
--trusted-host=files.pythonhosted.org