python pip安裝模塊報錯 "Can't connect to HTTPS URL because the SSL module is not available."

在升級python版本爲3.6以後,pip安裝模塊報錯。html

報錯信息如圖:python

 

緣由是系統自帶的openssl版本與python3的版本不匹配,因此這裏只要升級openssl版本就能夠解決問題。spa

yum -y install openssl openssl-devel

升級完以後須要從新編譯安裝python。code

編譯安裝python傳送陣。。。。。htm

相關文章
相關標籤/搜索