如何从启动板安装pypy并使用pip? [英] how can i use pip with pypy installed from launchpad?

查看:63
本文介绍了如何从启动板安装pypy并使用pip?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有Ubuntu 11.10.我从此启动板存储库中获取了已安装的pypy: https://launchpad.net/~pypy 该计算机已经上面有python,而python有自己的pip.如何为pypy安装pip?如何与python区别使用它?

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?

推荐答案

从此处 pypy网站:

如果要安装第三方库,最方便的方法是 安装pip:

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

为了更好地使用它,您可能需要在其中添加一个别名~/.bashrc:

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'

实际pip可执行文件所在的位置必须从pypy get-pip.py

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

这篇关于如何从启动板安装pypy并使用pip?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆