pjreddie/darknet

ImportError: cannot import name 'darknet' from 'darknet' (unknown location)

enissimsir opened this issue · 1 comments

Hello!
My code file and the darknet folder are in the same folder and I am adding this line: from darknet import darknet
Then I get that error:

Traceback (most recent call last):
File "/home/enis/Desktop/picmatcher/deneme4.py", line 6, in
from darknet import darknet
ImportError: cannot import name 'darknet' from 'darknet' (unknown location)

Any leads to fix that?

Put your darknet folder outside the current folder and then try to run it . It worked for me.