无法在Debian上安装Pip for Pypy [英] Unable to install Pip for Pypy on Debian

查看:138
本文介绍了无法在Debian上安装Pip for Pypy的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我现在正在尝试使用pypy,但不幸的是无法使用pip的python包管理器。我将以下镜像添加到我的source.list: p>

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

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

  apt-get install pypy 

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

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

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



唯一的点这是一个:

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

但没有点可执行。



有人知道解决方案吗?

编辑:



在pip文件中有:

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


解决方案

看起来像pypy安装了普通模块。不过,您应该可以使用

  pypy -m pip install< some package> 

别名这个。


I'm currently trying to use pypy but unfortunately unable to use pip the python package manager.

I added the following mirror to my source.list:

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

I installed then the pypy package using apt-get:

apt-get install pypy

Then I followed the steps given by the pypy documentation to install 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

but i'm unable to find the pip executable for pypy.

The only trace of pip for pypy is this one :

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

But no pip executable.

Does somebody know a solution ?

EDIT:

In the pip file there is :

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

解决方案

Seems like pypy just installed the plain module. Nevertheless, you should be able to run pip using

pypy -m pip install <some package>

and alias this.

这篇关于无法在Debian上安装Pip for Pypy的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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