Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

easy_install with pypy while Python is installed

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...

like image 934
Jonathan Livni Avatar asked Dec 28 '11 11:12

Jonathan Livni


People also ask

Can I use pip with PyPy?

PyPy Pip Installation Pip/pip3 is the official package manager for Python, but it can also be used by PyPy for installing Python modules. The easiest way to install pip for PyPy on any operating system is to use the ensurepip package that comes with Python and PyPy by default.

Is easy_install deprecated?

easy_install, now deprecated, was released in 2004 as part of setuptools. It was notable at the time for installing packages from PyPI using requirement specifiers, and automatically installing dependencies.

Is pip automatically installed with Python?

PIP is automatically installed with Python 2.7.9+ and Python 3.4+ and it comes with the virtualenv and pyvenv virtual environments.


3 Answers

You need to install easy_install for pypy manually.

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

like image 108
Julien Chappuis Avatar answered Sep 20 '22 22:09

Julien Chappuis


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
like image 25
Vajk Hermecz Avatar answered Sep 24 '22 22:09

Vajk Hermecz


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.
like image 34
user2947263 Avatar answered Sep 23 '22 22:09

user2947263