我试图在我的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