【问题标题】:Getting error while installing Flair (NLP Library)安装 Flair(NLP 库)时出错
【发布时间】:2019-11-14 18:09:08
【问题描述】:

我正在尝试使用 pip 安装 NLP 库“Flair”并收到错误消息:

ERROR: Could not find a version that satisfies the requirement torch>=1.0.0 (from flair) (from versions: 0.1.2, 0.1.2.post1, 0.1.2.post2)
ERROR: No matching distribution found for torch>=1.0.0 (from flair)"

我该怎么办

我正在使用 python3.6 并尝试在 virtualenv 中使用 cmd 和 pip 安装flair。但是还是有错误信息。

(env) C:\Users\HP>pip install flair

我希望安装没有任何问题。enter image description here

【问题讨论】:

  • pip install torch ?

标签: python cmd installation pip pytorch


【解决方案1】:

升级您的点子并重试。

pip install --upgrade pip
pip install torch

【讨论】:

    【解决方案2】:

    我遇到了同样的错误。

    以下步骤适用于 Windows10,Python3.6

    1.按照https://pytorch.org的官方安装说明安装Pytorch,有详细记录。

    根据您选择的包 [pip/conda 等] 和操作系统 [Mac/Linus/Windows],它将提供 command 。 此链接提供了有关如何安装 pytorch 的有用详细信息 - how to install pytorch

    2.pytorch安装成功后,使用命令安装Flair pip install flair

    【讨论】:

      【解决方案3】:

      我通过安装以下软件包解决了这个问题:

      !pip install tiny-tokenizer flair
      

      【讨论】:

        【解决方案4】:

        目前无法在 windows 中使用 pypi 安装 Pytorch 或 Torch。 您将需要 conda 来完成此操作:

        conda install pytorch torchvision cudatoolkit=9.0 -c pytorch
        

        或

        对于较旧的torch版本,您可以使用whl文件,Cuda版本可以是8.0,9.0,10.0

        pip install torch==1.0.1 -f https://download.pytorch.org/whl/cu90/stable # CUDA 9.0 build
        

        【讨论】:

          猜你喜欢
          • 1970-01-01
          • 2021-08-01
          • 1970-01-01
          • 2020-08-03
          • 1970-01-01
          • 1970-01-01
          • 2020-04-20
          • 2018-06-01
          • 2018-02-14
          相关资源
          最近更新 更多