numpy.exp2 became available starting with numpy-1.3.0. Mac OS X 10.6.8 (Snow Leopard) has numpy-1.2.1.