108 | | For python24, install the py-readline port! |
| 108 | If you're using python24, install the py-readline port. If you're using python25, install py25-readline. Depending on your setup, you may need to create a file called ~/.pythonrc.py with the following in it: |
| 109 | {{{ |
| 110 | import readline |
| 111 | }}} |
| 112 | |
| 113 | === Why can't I `import foo` in Python 2.5? === |
| 114 | |
| 115 | A number of "standard python modules" are built separately from the python25 port, including: |
| 116 | * zlib |
| 117 | * _hashlib |
| 118 | * _ssl |
| 119 | * _bsddb |
| 120 | * _sqlite3 |
| 121 | * _tkinter |
| 122 | * bz2 |
| 123 | * gdbm |
| 124 | * readline |
| 125 | * _curses |
| 126 | * _curses_panel |
| 127 | |
| 128 | Some of the modules are available as separate py25-xxx ports, for example, py25-hashlib. For further information about readline support in python25, see the above FAQ question. |