简体   繁体   English

使用pip安装wxPython(Python2.7)

[英]Installing wxPython with pip (Python2.7)

I'm trying to install wx python from MacOS Terminal, having tried the following 2 approaches: 我正在尝试从以下两种方法从MacOS Terminal安装wx python:

python -m pip install wxPython (also tried "...-U wxPython") python -m pip install wxPython(也尝试过“ ...- U wxPython”)

sudo -H pip install wxPython sudo -H pip安装wxPython

I get the following error both times: 我两次都遇到以下错误:

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 收集wxPython无法获取URL https://pypi.python.org/simple/wx/ :确认ssl证书时出现问题:[SSL:TLSV1_ALERT_PROTOCOL_VERSION] tlsv1警报协议版本(_ssl.c:590)-跳过

Could not find a version that satisfies the requirement wxPython (from versions: ) No matching distribution found for wxPython 找不到满足wxPython要求的版本(来自版本:)找不到与wxPython匹配的发行版

Using Python 2.7. 使用Python 2.7。 Any advice would be greatly appreciated! 任何建议将不胜感激!

The name you need to use is wxPython not wx . 您需要使用的名称是wxPython而不是wx ( https://pypi.org/project/wxPython/ ) https://pypi.org/project/wxPython/

Also, you can avoid the SSL errors by updating your Python and pip to the newest versions. 另外,您可以通过将Python和pip更新到最新版本来避免SSL错误。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM