安装cocoapi-aitod报错总结
·
fatal: repository ‘https://github.com/jwwangchn/cocoapi-aitod.git/’ not found
问题描述:
使用官方https://github.com/jwwangchn/cocoapi-aitod/安装命令:pip install "git+https://github.com/jwwangchn/cocoapi-aitod.git#subdirectory=aitodpycocotools"报错
原因:
github官网往往很不稳定,尤其是在Linux下,导致使用该命令直接安装失败,产生connect timeout的问题。因此我们只能考虑如何离线安装
解决办法:
1.直接在网站下载(git clone 或 下载zip)
2.解压文件
3.进入目录,在setup.py同级目录打开终端,使用指令安装:python setup.py install
insatll_requires: 'setuptools>=18.0', 'cython>=0.27.3', 'matplotlib>=2.1.0'
例如:setuptools 60.2.0
Cython 0.29.21
matplotlib 3.7.5
pycocotools unable to run: module 'numpy' has no attribute 'float'.
解决方法:
conda环境/lib/python3.8/site-packages/aitodpycocotools/cocoeval.py中将np.float改为float
更多推荐
所有评论(0)