Skip to content
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

ImportError: No module named 'pycocotools' #1

Closed
LinkToPast1990 opened this issue Jun 27, 2017 · 5 comments
Closed

ImportError: No module named 'pycocotools' #1

LinkToPast1990 opened this issue Jun 27, 2017 · 5 comments
Assignees

Comments

@LinkToPast1990
Copy link

D:\software\Anaconda3\python.exe C:/Users/Link/Desktop/tf-faster-rcnn-master/train.py
Traceback (most recent call last):
File "C:/Users/Link/Desktop/tf-faster-rcnn-master/train.py", line 9, in
from lib.datasets.factory import get_imdb
File "C:\Users\Link\Desktop\tf-faster-rcnn-master\lib\datasets\factory.py", line 15, in
from lib.datasets.coco import coco
File "C:\Users\Link\Desktop\tf-faster-rcnn-master\lib\datasets\coco.py", line 21, in
from pycocotools.coco import COCO
ImportError: No module named 'pycocotools'

@dBeker
Copy link
Owner

dBeker commented Jun 28, 2017

You need to compile and install pycocotools. I have added an instruction how to do it to readme. Please follow instructions and let me know if I missed something.

@dBeker dBeker self-assigned this Jun 28, 2017
@dBeker dBeker closed this as completed Jun 28, 2017
@wyf162
Copy link

wyf162 commented Jul 14, 2019

my error is same as the above, where the instruction of the pycocotools? thanks

@morpheusthewhite
Copy link
Collaborator

@wyf162
Copy link

wyf162 commented Jul 14, 2019

https://github.com/dBeker/Faster-RCNN-TensorFlow-Python3/blob/master/README.md

I need to download pycocotools, and place it in the profiles.
I did not find the infomation of the pycocotools in this readme.md.
please paste the info on this. thank you very much.
or in which step?

@morpheusthewhite
Copy link
Collaborator

Step 4:

Go to ./data/coco/PythonAPI
Run python setup.py build_ext --inplace
Run python setup.py build_ext install
Go to ./lib/utils and run python setup.py build_ext --inplace

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants