While trying to install PIP on machines in my office, I always encounter one issue or other like:
Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError(1, '_ssl.c:510: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed'),)': /simple/pip/
Irrespective of trying whatever workarounds floating there in forums, none seem to fetch any reliable results for me. So here is my workaround to install PIP:
1. Install easy_install by downloading setuptools package. Unzip the package and browse to that folder in command prompt. Now, run this command from Command Prompt (if it needs administrator rights- you have to open command prompt in Administrator mode) :
python setup.py install
2. Once setup tools are installed successfully, you can access easy_tools from the command prompt to install PIP using the command:
easy_install pipNow, you can install additional packages using either PIP or Easy_Install
If you continue getting Certificate Errors while trying to install additional packages using pip, use the following commands:
To install additional packages :
pip install --trusted-host pypi.org --trusted-host files.pythonhosted.org <package_name>
To upgrade pip:
python -m pip install --trusted-host pypi.org --trusted-host files.pythonhosted.org --upgrade pip