-
Notifications
You must be signed in to change notification settings - Fork 9.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AttributeError: module 'pycocotools' has no attribute '__version__' #3761
Comments
pip uninstall pycocotools |
Please use the mmlab maintained pycocotools. To do that, you should first |
import pycocotools pycocotools.file, to locate the pycocotools path which is used in current python environment. Then uninstall it. |
Hey @ZwwWayne, when I install mmpycocotools, I get back the error |
Hey, I got this problem too. I solved it by uninstall mmpycocotools, and install it again. |
it works for me! thx |
it worked for me |
it works for me . But I have a new bug. |
Hi, I installed mmdet according to the instructions, but I still encountered this problem.
File "/home/lijiale/mmdet_install/mmdetection/mmdet/datasets/coco.py", line 19, in
assert pycocotools.version >= '12.0.2'
AttributeError: module 'pycocotools' has no attribute 'version'
I also tried to install pycocotools from open-mmlab/cocoapi, but I found that it installed mmpycocotools. When I run pip list | grep pycocotools, I found that there are two pycocotools.
(open-mmlab) lijiale@ImageLab:~/mmdet_install/mmdetection3d$ pip list | grep pycocotools
mmpycocotools 12.0.2
pycocotools 2.0.2
Maybe this is the problem, but I don't know the specific reason. Could someone help me?
The text was updated successfully, but these errors were encountered: