简体   繁体   中英

Installing wxPython with pip (Python2.7)

I'm trying to install wx python from MacOS Terminal, having tried the following 2 approaches:

python -m pip install wxPython (also tried "...-U wxPython")

sudo -H pip install 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

Could not find a version that satisfies the requirement wxPython (from versions: ) No matching distribution found for wxPython

Using Python 2.7. Any advice would be greatly appreciated!

The name you need to use is wxPython not wx . ( https://pypi.org/project/wxPython/ )

Also, you can avoid the SSL errors by updating your Python and pip to the newest versions.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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