問題:
執(zhí)行命令,能夠正確得展示pip當(dāng)前版本,證明pip安裝沒有問題,但是使用pip下載依賴時就會報錯:
WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
pip3 -V
問題原因:
很好理解,就是the ssl module 這個ssl模塊版本太低了
python版本需要和openssl的版本需要相對匹配
在Python3.7之后的版本,依賴的openssl,必須要是1.1或者1.0.2之后的版本文章來源:http://www.zghlxwxcb.cn/news/detail-446145.html
解決辦法:
一、先確認(rèn)版本
openssl version
二、安裝依賴
如果已有,這步可以忽略文章來源地址http://www.zghlxwxcb.cn/news/detail-446145.html
yum install gcc libffi-devel zlib* openssl-devel
到了這里,關(guān)于pip安裝成功,但下載依賴時報錯the ssl module in Python is not available的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!