28

How do I use ipython on top of a pypy interpreter rather than a cpython interpreter? ipython website just says it works, but is scant on the details of how to do it.

asked May 14, 2013 at 6:42

4 Answers 4

18

You can create a PyPy virtualenv :

virtualenv -p /path/to/pypy <venv_dir>

Activate the virtualenv

source <venv_dir>/bin/activate

and install ipython

pip install ipython
wim
369k114 gold badges682 silver badges821 bronze badges
answered May 14, 2013 at 11:07
Sign up to request clarification or add additional context in comments.

1 Comment

If someone wants to get this working on pypy for python 2, you need pip install ipython==1.2.1
5

This worked for me, after pypy is installed:

pypy -m easy_install ipython

Then it gets installed in the same directory as pypy, so if pypy is at this location:

which pypy
/usr/local/bin/pypy

Then ipython will be there

/usr/local/bin/ipython

You can set up an alias in your bash startup script:

alias pypython="/usr/local/share/pypy/ipython"
answered Feb 10, 2014 at 14:35

Comments

4
  • install setuptools to pypy
  • install pip with setuptools to pypy

do

pypy\bin\pip install ipython
answered Aug 19, 2013 at 7:40

Comments

2

The "straight forward" way is:

  1. Install pypy3
  2. pypy3 -m pip install ipython
  3. pypy3 -m IPython
answered Apr 13, 2021 at 11:48

2 Comments

pypy doesn't come with a pip installation by default (although, these days ensurepip could be used to bootstrap one).
Depends how you install it. For example if you install pypy through Homebrew (on macOS), then it does comes with pip pre-installed.

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.