【问题标题】:Error in installing python package Flair, about a dependent package not hosted in PyPI安装 python 包 Flair 时出错,关于不在 PyPI 中托管的依赖包
【发布时间】:2020-04-20 21:06:47
【问题描述】:

我正在尝试安装flair。执行以下命令时抛出以下错误:

pip install flair

ERROR: Packages installed from PyPI cannot depend on packages which are not also hosted on PyPI.
tiny-tokenizer depends on SudachiDict_core@ https://object-storage.tyo2.conoha.io/v1/nc_2520839e1f9641b08211a5c85243124a/sudachi/SudachiDict_core-20190927.tar.gz

我认为显式安装此软件包可能会修复错误,但事实并非如此。错误保持不变。 SudachiDict-core 的安装版本如下: SudachiDict-core 0.0.0

下面是环境:

  • 操作系统:Windows 10
  • Python:3.6(64 位)

感谢任何提示。谢谢!

注意:

  • 安装flair 时的第一个障碍是torch 包。安装torch包时简单地解决了这个问题。错误如下所示: ERROR: Could not find a version that satisfies the requirement torch>=1.1.0 (from flair) (from verERROR: No matching distribution found for torch>=1.1.0 (from flair)

【问题讨论】:

    标签: python python-3.x pip flair


    【解决方案1】:

    你可以试试

    pip install --upgrade git+https://github.com/zalandoresearch/flair.git
    

    来源:https://github.com/flairNLP/flair/issues/1327#issuecomment-571639994

    或者

    单独安装:

    pip install tiny-tokenizer
    

    运行后:

    pip install flair
    

    【讨论】:

      【解决方案2】:

      奇怪的是,运行下面的命令解决了这个问题。

      pip install flair==0.4.3

      我认为问题出在最新版本 0.4.4(及其依赖项)中。

      注意:我已经安装了 torch==1.1.0 软件包。

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2018-07-04
        • 2021-11-14
        • 2018-09-05
        • 1970-01-01
        • 2013-09-20
        • 2013-01-16
        相关资源
        最近更新 更多