1
votes

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!

2
try pip install -U wxPython from here: wxpython.org/pages/downloads/index.html - user9814172
This yields the same error. I forgot to mention that I tried this too. Thanks. - CodeGuyJr

2 Answers

2
votes

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.

-2
votes

This command worked for me:

pip install wxPython --user