If I replace Python with 3.5 and 2.7.10 and try to package it as usual pip._vendor.requests.exceptions.SSLError: unknown error (_ssl.c:3031) I was in trouble. The environment is OSX Yosemite, pyenv for Python version control.
So how to deal with it. First of all, if it is ordinary Python,
Users / (your name) /.pyenv/versions/2.7.10 or 3.5.0/lib/python2.7 or python3.5 / site-packages / pip / download.py
With Anaconda,
Users / (your name) /.pyenv/anaconda-(version name) /lib/python (version name) /site-packages/pip/download.py
Is OK if you modify as follows.
# Dispatch the actual request
return super(PipSession, self).request(method, url, *args, **kwargs)
From
# Dispatch the actual request
return super(PipSession, self).request(method, url, verify=False, *args, **kwargs)
What. This is OK. (Adding verify = False)
[reference] http://qiita.com/_akisato/items/4b531aab65de8cd2909a