How to run ipython with pypy?
Question:
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.
Answers:
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
- install setuptools to pypy
- install pip with setuptools to pypy
do
pypybinpip install ipython
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"
The "straight forward" way is:
- Install
pypy3
pypy3 -m pip install ipython
pypy3 -m IPython
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.
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
- install setuptools to pypy
- install pip with setuptools to pypy
do
pypybinpip install ipython
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"
The "straight forward" way is:
- Install
pypy3
pypy3 -m pip install ipython
pypy3 -m IPython