I downloaded the Python 3.5 source code and ran the following:
$ tar -xf Python-3.5.2.tar.xz $ ./configure --with-ensurepip=upgrade $ make $ sudo make altins
If you use Manjaro Linux, you can use this:
sudo pacman -S openssl , check