SSLError using pip install (to install tensorflow)

For those working on macOS run from a terminal window..

- /Applications/Python\ 3.6/Install\Certificates.command

Use the following version of certifi

pip2 install 'certifi==2015.4.28' --force-reinstall

after that there will be no more SSL errors.

Solution was found here: https://github.com/kennethreitz/requests/issues/3212


SSL error can be solved by bellow steps for sure. Just download the wheel on your own and pip install.

# Ubuntu/Linux 64-bit, CPU only:

$ wget https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.5.0-cp27-none-linux_x86_64.whl

$ sudo pip install --upgrade tensorflow-0.5.0-cp27-none-linux_x86_64.whl

# Ubuntu/Linux 64-bit, GPU enabled:

$ wget https://storage.googleapis.com/tensorflow/linux/gpu/tensorflow-0.5.0-cp27-none-linux_x86_64.whl

$ sudo pip install --upgrade tensorflow-0.5.0-cp27-none-linux_x86_64.whl