Describe the bug
ModuleNotFoundError: No module named 'allennlp.data'; 'allennlp' is not a package
To Reproduce
Steps to reproduce the behavior
Expected behavior
expect no error
System (please complete the following information):
Additional context


@joelgrus , can you see anything obviously incorrect here?
do you have a file called allennlp.py (or something like that) in your current directory? that can cause this kind of problem, because python is trying to import from that file (which is not a library) instead of from the allennlp library.
do you have a file called
allennlp.py(or something like that) in your current directory? that can cause this kind of problem, because python is trying to import from that file (which is not a library) instead of from the allennlp library.
OMG!!! i am sorry,there is a allennlp.py in my current directory indeed,this problem confuse me the whole day. Thank u a lot!!!
Most helpful comment
do you have a file called
allennlp.py(or something like that) in your current directory? that can cause this kind of problem, because python is trying to import from that file (which is not a library) instead of from the allennlp library.