本文介绍了如何从启动板安装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网站:

$ 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?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-13 13:28