Skip to content
Russell91 edited this page Sep 5, 2014 · 5 revisions

Pythonpy supports both python2 and python3.

For python3 install, use:

sudo pip3 install -I pythonpy

This should give an output like:

Downloading/unpacking pythonpy Downloading pythonpy-0.3.5.tar.gz Running setup.py (path:/private/tmp/pip_build_root/pythonpy/setup.py) egg_info for package pythonpy

Installing collected packages: pythonpy Running setup.py install for pythonpy

Installing pycompleter2 script to /usr/local/bin
Installing pycompleter script to /usr/local/bin
Installing pycompleter2.7 script to /usr/local/bin
Installing py2 script to /usr/local/bin
Installing py script to /usr/local/bin
Installing py2.7 script to /usr/local/bin

Successfully installed pythonpy Cleaning up...

Notice that this created the following executables:

  • py
  • py3
  • py3.3

All of these will run pythonpy using python3. Use py -V to determine the Python version if you aren't sure. If you want python2 and python3 support on the same machine, you can subsequently run:

sudo pip install -I pythonpy

Which will create the executables:

  • py
  • py2
  • py2.7

This will of course overwrite py, but not py3.

Clone this wiki locally