使用pip安装时不安装的要求

2024-09-30 10:27:16 发布

您现在位置:Python中文网/ 问答频道 /正文

使用pip安装时,没有安装需求的需求。你知道吗

dedupe需要 pylbfgs,它需要numpy 1.12.1或更大。你知道吗

但是当我从一个目录安装dedupe时

> git clone git@github.com:dedupeio/dedupe.git
> cd dedupe
> pip install --upgrade pip
> pip install .
...
Collecting Levenshtein_search (from dedupe==1.6.13)
Downloading Levenshtein_search-1.4.4-cp27-cp27mu-manylinux1_x86_64.whl (59kB)
100% |████████████████████████████████| 61kB 8.5MB/s 
Requirement already satisfied: numpy>=1.9 in /home/travis/virtualenv/python2.7.9/lib/python2.7/site-packages (from fastcluster->dedupe==1.6.13)
Collecting pylbfgs (from rlr>=2.4.3->dedupe==1.6.13
Downloading PyLBFGS-0.2.0.5-cp27-cp27mu-manylinux1_x86_64.whl (159kB)
100% |████████████████████████████████| 163kB 7.4MB/s 
...
> pip freeze
...
numpy==1.9.1
...

我本以为pip会检查pylbfgs的需求,并发现numpy >= 1.12.1是必要的,但那没有发生。我不知道这是否与pip检查numpy的依赖关系并发现它被满足有关。你知道吗

这里有完整的回溯:https://travis-ci.org/dedupeio/dedupe/jobs/232943131


Tags: installpipfromgitnumpysearchlevenshteindedupe

热门问题