我是 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/