0
我是新來編碼。雖然我嘗試使用python3的pip3安裝python-forecastio,但它給了我下面的錯誤。pip3安裝時出現SSL錯誤
$ sudo pip3 install --trusted-host pypi.python.org python-forecastio
pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
Collecting python-forecastio
Could not fetch URL https://pypi.python.org/simple/python-forecastio/: There was a problem confirming the ssl certificate: Can't connect to HTTPS URL because the SSL module is not available. - skipping
Could not find a version that satisfies the requirement python-forecastio (from versions:)
No matching distribution found for python-forecastio
的原因是沒有安裝OpenSSL的相關軟件, 嘗試百勝安裝的OpenSSL的OpenSSL devel的 然後一切正常。 –
你在運行什麼樣的設置沒有內置的SSL模塊? – kichik