Install wxPython on Mac os Mavericks

ng150716 picture ng150716 · Jan 19, 2014 · Viewed 10k times · Source

I am on a Macbook Air, running Mavericks. Today I downloaded wxPython via their website, however, when I click on the install package I get:

wxPython3.0-osx-cocoa-py2.7.pkg” is damaged and can’t be opened. You should eject the disk image.

Anyone have any ideas to get around this, thanks.

Answer

abarnert picture abarnert · Jan 20, 2014

According to #14523, the problem is that the package is not signed (and it's an old-style package, which isn't fully supported anymore, which is why you get the wrong error message, and the usual workaround of context-clicking Open doesn't work).

There are two workarounds:

First, you can turn off Gatekeeper (in System Preferences, Security & Privacy, General, select the "Allow apps downloads from: … Anywhere" radio button), install wxPython, then turn Gatekeeper back on.

Alternatively, you can install from the command line:

sudo installer -pkg /path/to/wxPython.pkg -target /