[Solved] Error when calling different modules of Python functions: ModuleNotFoundError: No module named’python_base.test1′;’python_base’ is not a package

Function call being given different modules: ModuleNotFoundError: No Module1 the named ‘python_base.test1’; ‘python_base’ IS Not A Package ( ModuleNotFoundError: No module named ‘python_base.test1’ a; ‘python_base’ is not a package )

It is found that there is a py file with the same name under the package package, which causes an error to be reported when the call is made. (It is hereby recorded to prevent such low-level mistakes from being made in the future!)

Two other points to note:


Similar Posts:

Leave a Reply

Your email address will not be published. Required fields are marked *