gpt4 book ai didi

python - 安装 python 包 Flair 时出错,关于 PyPI 中未托管的依赖包

转载 作者:行者123 更新时间:2023-12-03 16:22:23 24 4
gpt4 key购买 nike

我正在尝试安装 flair .执行以下命令时抛出以下错误:
pip install flairERROR: 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 位)

  • 任何提示表示赞赏。谢谢!

    笔记:
  • 安装天赋时的第一个障碍是 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)
  • 最佳答案

    你可以试试

    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

    关于python - 安装 python 包 Flair 时出错,关于 PyPI 中未托管的依赖包,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59559294/

    24 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com