debian - 无法在 Debian 上为 Pypy 安装 Pip

标签 debian pip pypy

我目前正在尝试使用 pypy,但遗憾的是无法使用 python 包管理器 pip。

我将以下镜像添加到我的 source.list 中:

deb http://ftp.de.debian.org/debian jessie main

然后我使用 apt-get 安装了 pypy 包:

apt-get install pypy

然后我按照pypy文档给出的步骤安装pip:

curl -O http://python-distribute.org/distribute_setup.py
curl -O https://raw.github.com/pypa/pip/master/contrib/get-pip.py
pypy distribute_setup.py
pypy get-pip.py

但我找不到 pypy 的 pip 可执行文件。

pypy 的 pip 的唯一痕迹是这个:

root@computer:/usr/local/lib/pypy2.7/dist-packages# ll
total 24
drwxr-sr-x 6 root staff 4096 mars   1 19:29 distribute-0.6.49-py2.7.egg
-rw-r--r-- 1 root staff  215 févr. 26 03:43 easy-install.pth
drwxr-sr-x 7 root staff 4096 mars   1 18:07 pip
drwxr-sr-x 3 root staff 4096 févr. 26 03:44 pip-1.5.4.dist-info
-rw-r--r-- 1 root staff  144 févr. 26 03:43 setuptools-0.6c11-py2.7.egg-info
-rw-r--r-- 1 root staff   30 mars   1 19:29 setuptools.pth

但没有 pip 可执行文件。

有人知道解决方案吗?

编辑:

在pip文件中有:

root@superswag:/usr/local/lib/pypy2.7/dist-packages/pip# ll
total 292
drwxr-sr-x 3 root staff 4096 févr. 26 03:44 backwardcompat 
-rw-r--r-- 1 root root 6578 févr. 26 03:44 basecommand.py 
-rw-r--r-- 1 root root 8162 févr. 26 03:44 baseparser.py 
-rw-r--r-- 1 root root 9507 févr. 26 03:44 cmdoptions.py 
drwxr-sr-x 3 root staff 4096 févr. 26 03:44 commands 
-rw-r--r-- 1 root root 22580 févr. 26 03:44 download.py 
-rw-r--r-- 1 root root 1086 févr. 26 03:44 exceptions.py 
-rw-r--r-- 1 root root 40403 févr. 26 03:44 index.py 
-rw-r--r-- 1 root root 9450 févr. 26 03:44 __init__.py 
-rw-r--r-- 1 root root 6202 févr. 26 03:44 locations.py 
-rw-r--r-- 1 root root 9455 févr. 26 03:44 log.py 
-rw-r--r-- 1 root root 116 févr. 26 03:44 __main__.py 
-rw-r--r-- 1 root root 2969 févr. 26 03:44 pep425tags.py 
drwxr-sr-x 2 root staff 4096 févr. 26 03:44 __pycache__ 
-rw-r--r-- 1 root root 83557 févr. 26 03:44 req.py 
-rw-r--r-- 1 root root 431 févr. 26 03:44 runner.py 
-rw-r--r-- 1 root root 116 févr. 26 03:44 status_codes.py 
-rw-r--r-- 1 root root 24172 févr. 26 03:44 util.py 
drwxr-sr-x 3 root staff 4096 févr. 26 03:44 vcs 
drwxr-sr-x 8 root staff 4096 févr. 26 03:44 _vendor 
-rw-r--r-- 1 root root 20120 févr. 26 03:44 wheel.py

最佳答案

似乎 pypy 刚刚安装了 plain 模块。不过,您应该能够使用

运行 pip
pypy -m pip install <some package>

并为它起别名。

关于debian - 无法在 Debian 上为 Pypy 安装 Pip,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22119136/

相关文章:

debian - 从 Jenkins 将 Debian 部署到 Artifactory 仓库

linux - 在 Debian 8 上安装 Docker

python - 通过 docker-compose 运行 'pip install' 时出现 ConnectTimeoutError

python - 链接发电机被认为是有害的?

python - 在 PyPy 上运行 Scrapy

lxml 不会使用 easy_install 安装在 pypy 下

c++ - 创建原始套接字 - Debian + Codeblocks

linux - 需要 Debian 3.1 完整 iso

python - “Pip”在命令提示符中识别但在 PyCharm 终端中不识别

python - 在虚拟环境中, "sudo pip"链接到全局 python pip