python,ModuleNotFoundError,is not a package

时间:2024-10-20 21:33:50

Traceback (most recent call last):
File "/home/lll/zzz/work/video/zzz/generate.py", line 7, in <module>
import gender_detect.Serv
File "/home/lll/zzz/work/video/zzz/generate.py", line 7, in <module>
import gender_detect.Serv
ModuleNotFoundError: No module named 'xxx.xxx'; 'generate' is not a package

是该文件和python路径下其他文件重名了,还是什么,改个名字就好了