Python installation on Mac OSX

Core requirements

Python 2.7

pip install pycrypto


The latest version known to work is wxPython 2.9.4 cocoa.

Admin4 runs with wxPython 3.0, but unfortunately a bug has crept into the current release. Until this regression (wxDialog::ShowModal activates wrong frame when closing) is resolved, you should use 2.9.4.

If the wxPython installer doesn't work as expected when double-clicking (this is a known problem for 10.8/10.9), you can run

sudo installer -pkg /Volumes/wxPython*/wxPython*.pkg -target /

to force the installation.

Since El Capitan, a further complication has been introduced. The wxPython package format isn't compatible any more, so it's necessary to repack it according to these instructions, replacing 3.0 with 2.9.4 as mentioned above. The package isn't registered correctly with the Python interpreter. To fix this, add these links:

cd /Library/Python/2.7/site-packages
sudo ln -s /usr/local/lib/wxPython-
sudo ln -s /usr/local/lib/wxPython-
sudo ln -s /usr/local/lib/wxPython-


modBind requirements

modBind needs requests and dnspython.

sudo pip install requests
sudo pip install dnspython

modLdap requirements

modLdap needs PythonLdap 2.4 or newer.

sudo pip install python-ldap

modPg requirements

modPg uses psycopg 2.5 or newer.

sudo port install py27-psycopg2