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

ModuleNotFoundError: No module named 'tools' #10

Open
TongaoY opened this issue Dec 31, 2023 · 1 comment
Open

ModuleNotFoundError: No module named 'tools' #10

TongaoY opened this issue Dec 31, 2023 · 1 comment

Comments

@TongaoY
Copy link

TongaoY commented Dec 31, 2023

运行报错:(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'

@catqaq
Copy link
Owner

catqaq commented Mar 12, 2024

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

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

2 participants