This is sad since more and more Python distributions on OS X are being built with the Apple-supplied libedit
on OS X, and not with the GPL licensed GNU readline
library, which Apple does not ship. For example, the current 64-bit / 32-bit python.org installers for OS X use libedit
, while the 32-bit installers currently use readline
because libedit
does not work on older versions of OS X. Although 32- the bit installer for Python 3.2 can be installed on 10.7, this is problematic on 10.7 if you need to install any C extension modules, since this Python was built with older 10.4u SDKs and ppc arches that are not supported on 10.7. Ideally, iPython must be modified to work properly with libedit
or readline
. If there are Python errors prohibiting this, errors must be logged with Python itself. In addition, perhaps supporters of the readline
package on PyPI may be convinced of the creation and deployment of the 3.2 binary package.
Otherwise, you can create it yourself using the original distribution, assuming you have installed Xcode for Lion. If the Python 3.2 framework is not in your way, you will need to do:
$ export PATH=/Library/Frameworks/Python.framework/Versions/3.2/bin:$PATH
Then, if you have not installed Distribute for Python 3.2:
$ curl -O http://python-distribute.org/distribute_setup.py $ python3.2 distribute_setup.py
Then download, create and install the readline
package from PyPI:
$ easy_install-3.2 readline
Or you can install Python 3.2 from a third-party distributor such as MacPorts, which provides a readline
port ( py32-readline
) along with an iPython port.
source share