python - 如何使用或安装pycocoevalcap?

标签 python tensorflow module pip pycocotools

我是 coco 数据集的新手..我遇到了这个错误

# this requires the coco package, Link
  from pycocoevalcap.bleu.bleu import Bleu
  from pycocoevalcap.rouge.rouge import Rouge
  from pycocoevalcap.cider.cider import Cider 
ModuleNotFoundError: No module named 'pycocoevalcap'

我用给定的链接下载了 coco 包并尝试使用 pip3 install pycocoevalcap

但是得到了

ERROR: Could not find a version that satisfies the requirement pycocoevalcap (from versions: none)
ERROR: No matching distribution found for pycocoevalcap

我该如何解决

最佳答案

所以我使用了这个命令:

 pip install "git+https://github.com/salaniz/pycocoevalcap.git"

它返回了

 Collecting git+https://github.com/salaniz/pycocoevalcap.git
  Cloning https://github.com/salaniz/pycocoevalcap.git to /tmp/pip-req-build-3u0sbfzy
  Running command git clone -q https://github.com/salaniz/pycocoevalcap.git /tmp/pip-req-build-3u0sbfzy
Collecting pycocotools>=2.0.0
 ...
Successfully built pycocoevalcap pycocotools
Installing collected packages: cython, pycocotools, pycocoevalcap.
Successfully installed cython-0.29.20 pycocoevalcap-1.1 pycocotools-2.0.1

关于python - 如何使用或安装pycocoevalcap?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62439483/

相关文章:

module - 有人开始创建 React Native API/插件/模块了吗?

python - __init__.py 中的 __name__ 是什么?

python - 将 Pandas 数据框中的多列更改为日期时间

python - 神经网络预测足球结果

Tensorflow 对象检测训练被杀死,资源匮乏?

jboss as7 tld 未找到

python - 根据行值对数据框进行子集化,其中行值和列名存储在 VARIABLE 中

python - 按当前日期过滤 aws ec2 快照

python - 在 tensorflow 中“分配”2D block 切片?

python - 如何添加获取我使用 from x import * 导入的模块数组?