Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
ce_libs
utilities
logger.py
logger
/mypath/test.py
test.py
import
from ce_libs.utilities.Logger import logger
我收到以下错误:
ImportError: No module named ce_libs.utilities.Logger
我该如何解决?
Linux 区分大小写:foo、Foo和FOO是不同的。如果您的模块被调用logger.py,您可能应该ce_libs.utilities.logger从而不是导入ce_libs.utilities.Logger。
foo
Foo
FOO
ce_libs.utilities.logger
ce_libs.utilities.Logger