2

我是使用 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'

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

但得到了

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

我该如何解决

4

1 回答 1

3

所以我使用了这个命令:

 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
于 2020-06-18T00:04:53.270 回答