8

I installed PyPy while still having Python 2.7 on my system.

  • How do I install and then use easy_install with PyPy?
  • What is the syntax for distinguishing where I want to install to with easy_install?
  • Should I set any environment variables for ease of use?

I'm on Windows, but these questions seem relevant for all platform...

Jonathan Livni
  • 101,334
  • 104
  • 266
  • 359

3 Answers3

5

An alternative solution is to install pip. Following the instructions in pip's documentation:

wget https://bootstrap.pypa.io/get-pip.py
pypy get-pip.py
pypy -m pip install ipython
Vajk Hermecz
  • 5,413
  • 2
  • 34
  • 25
5

You need to install easy_install for pypy manually.

It's explained in the answer to this question : Installing Python eggs under PyPy

Community
  • 1
  • 1
Julien Chappuis
  • 349
  • 1
  • 11
  • If you have python's executable in your path, use `pypy [whatever]` syntax for all installations so that it will install under pypy and not python – Jonathan Livni Dec 28 '11 at 15:23
2

At least this worked for me:

$ brew install pypy
$ pypy -m easy_install ipython

$ /usr/local/share/pypy/ipython
Python 2.7.3 (480845e6b1dd, Jul 31 2013, 10:58:28)
Type "copyright", "credits" or "license" for more information.

IPython 1.1.0 -- An enhanced Interactive Python.
?         -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help      -> Python's own help system.
object?   -> Details about 'object', use 'object??' for extra details.
  • This may work, but I haven’t seen any recommendations for using `easy_install` that weren’t written several years ago. For the past ≈2 years, `setuptools` has been the unifying standard. (Before that was a competition between `setuptools` and `distribute`; they eventually merged into the current `setuptools`.) I’m less familiar with pypy (and whether it needs something Pythons 2 & 3 don’t), but it’s worth double-checking this, just in case. – Zearin May 04 '15 at 12:29