安装allennlp库

https://github.com/allenai/allennlp allennlp官方安装步骤

 

安装allennlp库:

pip install allennlp

 

出现错误:

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

 

解决could not find a version that satisfies the requirement torch等类似问题

安装torchvision出现ERROR: No matching distribution found for torch==1.4.0 (from torchvision)

 

在线安装老是出现错误,于是尝试下载allennlp的whl包,然后离线安装

到网站上https://pypi.tuna.tsinghua.edu.cn/simple/allennlp/下载相应python版本的whl包,然后在Anaconda Prompt窗口转到whl包所在目录,pip install whl包,即可。

过程如下所示:

 

出现了报错,ERROR: After October 2020 you may experience errors when installing or updating packages. This is because pip will change the way that it resolves dependency conflicts.

We recommend you use --use-feature=2020-resolver to test your packages with the new resolver before it becomes the default.

textacy 0.10.1 requires spacy<3.0.0,>=2.2.0, but you'll have spacy 2.1.9 which is incompatible.

 

虽然出现了报错,但其实应该是已经安装成功了。

  • 2
    点赞
  • 7
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

weixin_39450145

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值