Script is pretty simple:
- Packages not found
- pip error while installing packages.
Defaulting to user installation because normal site-packages is not writeable
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None,
Solution :
Use the following command to install packages
pip install --trusted-host pypi.org --trusted-host files.pythonhosted.org --upgrade pip
pip install --trusted-host pypi.org --trusted-host files.pythonhosted.org Django==3.2
- azure.core.exceptions.ServiceRequestError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain
On Windows, Python does not look at the system certificate, it uses its own located at ?\lib\site-packages\certifi\cacert.pem
.
- download the certificate chain from portal.azure.com as *.crt or *pem file
- open the file in editor and copy it's content to clipboard. contents will be like below. Copy all of it.
- Find your
cacert.pem
location:from requests.utils import DEFAULT_CA_BUNDLE_PATH; print(DEFAULT_CA_BUNDLE_PATH)
- edit the
cacert.pem
file and paste your domain validation certificate at the end of the file. - Save the file.