How can I install bpython, or another good python shell, on OSX 10.6, for python 3?

Calling easy_install bpython installed it for python 2.6 (same with ipython). Nor brew nor macports seem to even realise python 3 exists. Directly trying ipython's egg specific for python 3 gave all sort of errors.

link|improve this question

80% accept rate
Homebrew has python3, by the way. – slhck Oct 22 '11 at 11:31
feedback

1 Answer

up vote 2 down vote accepted

Generally, just running easy_install uses Python 2. If you have the Python 3 version of distribute installed, you can run easy_install3 bpython to install bpython into Python 3. If not, download and install it so you can use easy_install with Python 3 whenever you need it.

Alternatively, just download the bpython tarball, extract it, and then run sudo python3 setup.py in the extracted directory to install it.

IPython for Python 3 is not available through easy_install/pip so you have to download its tarball and install it the same way as bpython.

link|improve this answer
It requred a few guesses, but in the end doing it via distribute worked, thanks :) – Lohoris Oct 22 '11 at 12:42
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.