我尝试从 MacOS 终端安装 wx python,尝试了以下 2 种方法:
python -m pip install wxPython (also tried "...-U wxPython")
sudo -H pip install wxPython
我两次都收到以下错误:
Collecting wxPython Could not fetch URL https://pypi.python.org/simple/wx/: There was a problem confirming the ssl certificate: [SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:590) - skipping
Could not find a version that satisfies the requirement wxPython (from versions: ) No matching distribution found for wxPython
使用Python 2.7。任何建议将不胜感激!
最佳答案
您需要使用的名称是wxPython
而不是wx
。 (https://pypi.org/project/wxPython/)
此外,您可以通过将 Python 和 pip 更新到最新版本来避免 SSL 错误。
关于python - 使用pip安装wxPython(Python2.7),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50805588/