4

我通过 pipenv 安装的包中存在冲突的子依赖项,这使我无法生成 Pipfile.lock。冲突在于 html5lib,它是 spaCy 和 JupyterLab 的依赖项。spaCy 明确要求 version 1.0b8,而bleach (这是 JupyterLab 的子依赖项)明确禁止1.0b8. (相关片段pipenv graph如下。)

有谁知道如何最好地解决这个冲突?我在 pipenv 的网站上找不到任何关于解决冲突的信息。

en-core-web-lg==2.0.0
  - spacy [required: >=2.0.0a18, installed: 2.0.9]
    - html5lib [required: ==1.0b8, installed: 1.0b8]
jupyterlab==0.31.12
  - jupyterlab-launcher [required: >=0.10.0,<0.11.0, installed: 0.10.5]
    - notebook [required: >=4.2.0, installed: 5.4.1]
      - nbconvert [required: Any, installed: 5.3.1]
        - bleach [required: Any, installed: 2.1.3]
          - html5lib [required: !=1.0b4,!=1.0b5,!=1.0b7,!=1.0b8,!=1.0b1,!=1.0b6,!=1.0b3,>=0.99999999pre,!=1.0b2, installed: 1.0b8]
4

0 回答 0