Install Package using the below command

pip install --trusted-host pypi.org --trusted-host files.pythonhosted.org <package_name>

Permanent Fix

Since the release of pip 10.0, you should be able to fix this permanently just by upgrading pip itself:

$ pip install --trusted-host pypi.org --trusted-host files.pythonhosted.org pip setuptools

References: Stack Over Flow

Advertisement