Python/pip behind corporate firewall

Tong Sun suntong001 at
Wed Mar 10 21:05:24 UTC 2021

Our corporate firewall, Zscaler, is blocking my `pip install`.

Anyone has a similar situation?

I've already installed pipsi & py37-certifi:

sudo port -N install pipsi py37-certifi

$ python -m certifi

and I've also update the Zscaler certificate into this CA Store,

cat ZscalerRootCertificate-2048-SHA256.crt >> $(python -m certifi)

as per

but still, I can't pip install anything. For e.g.:

$ sudo -H pip3 install --upgrade certifi
WARNING: Retrying (Retry(total=4, connect=None, read=None,
redirect=None, status=None)) after connection broken by
'SSLError(SSLCertVerificationError(1, '[SSL:
CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get
local issuer certificate (_ssl.c:1123)'))': /simple/certifi/

Any Python users here?

More information about the macports-users mailing list