Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available)

使用pip下载包时提示:

Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available)

然后重新安装了openssl,再次编译Python,再次安装包,还是同样的结果,最后发现在python编译完成后,提示:

Failed to build these modules: _ssl

然后安装了想起了devel包,于是

sudo yum install openssl-devel

再次编译Python,发现没有这个提示了,再去下载python包,成功。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章