我試圖在我的Raspberry Pi Zero W上安裝Python 3.6的RPi.GPIO,但不知何故它不會連接到python.org網站。我已經PIP安裝了2.7,3.0和3.6,所以當我去這樣做:pip無法確認SSL證書:SSL模塊不可用
sudo pip3.6 install RPi.GPIO
我得到這個錯誤:
[email protected]:~ $ sudo pip3.6 install RPi.GPIO
pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
Collecting RPi.GPIO
Could not fetch URL https://pypi.python.org/simple/rpi-gpio/ : 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 RPi.GPIO (from versions:)
No matching distribution found for RPi.GPIO
我也嘗試sudo apt-get install openssl
等,但它仍然不起作用。我可以在我的桌面和手機上完美訪問網站,但我的Raspberry Pi根本不會。任何想法我可以做什麼?
你可以試試'http_proxy =「」&& pip3.6安裝RPi.GPIO' – haifzhan
@HaifengZhang同樣的問題。 – MortenMoulder