If you're behind a proxy or getting these errors when installing or upgrading python packages or PIP itself
python -m pip install --upgrade pip
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: self signed certificate in certificate chain (_ssl.c:1123)'))': /simple/pip/
Then try these extra parameters to trust Python sites (only do this if you trust the proxy)
python -m pip install --trusted-host pypi.org --trusted-host files.pythonhosted.org --upgrade pip
Collecting pip
Downloading pip-21.1.2-py3-none-any.whl (1.5 MB)
|████████████████████████████████| 1.5 MB 1.3 MB/s