问题是python使用的openssl版本不支持TLS 1.2。
我用brew安装了openssl,然后重新安装了python,告诉它使用我通过brew安装的openssl:
$ brew update$ brew install openssl$ brew install python --with-brewed-openssl
然后一切正常!

问题是python使用的openssl版本不支持TLS 1.2。
我用brew安装了openssl,然后重新安装了python,告诉它使用我通过brew安装的openssl:
$ brew update$ brew install openssl$ brew install python --with-brewed-openssl
然后一切正常!