catqaq/OpenTextClassification

ModuleNotFoundError: No module named 'tools'

TongaoY opened this issue · 1 comments

运行报错:(D:\python3.10\test) D:\work\OpenTextClassification-master>D:/python3.10/test/python.exe d:/work/zuoye/OpenTextClassification-master/run.py
Traceback (most recent call last):
File "d:\work\OpenTextClassification-master\run.py", line 6, in
from tools.train_eval import train, init_network, setup_seed
ModuleNotFoundError: No module named 'tools'

如果使用的是pycharm的话,这一般是由目录设置导致的,好像得恰当的设置source root,just Google it。你可以在tools目录下找到相应的函数~