how can i use pip with pypy installed from launchpad?

user1098562 picture user1098562 · Dec 14, 2011 · Viewed 30.1k times · Source

I have ubuntu 11.10. I apt-get installed pypy from this launchpad repository: https://launchpad.net/~pypy the computer already has python on it, and python has its own pip. How can I install pip for pypy and how can I use it differently from that of python?

Answer

xubuntix picture xubuntix · Mar 30, 2012

Quoting (with minor changes) from here the pypy website:

If you want to install 3rd party libraries, the most convenient way is to install pip:

$ curl -O https://bootstrap.pypa.io/get-pip.py
$ ./pypy-2.1/bin/pypy get-pip.py
$ ./pypy-2.1/bin/pip install pygments  # for example

In order to use it nicely, you might want to add an alias into e.g. ~/.bashrc:

alias pypy_pip='./pypy-2.1/bin/pip'

Where the actual pip executable is located has to be taken from the output of pypy get-pip.py