Reason: after using the GIT clone project, the project root path is a lowercase English name, such as cmdbapi, but when the import in the project imports its own related packages, an error is reported in red
Solution: rewrite the project name to the name of the import package, namely cmdbapi. Of course, you can also rewrite the import package to lowercase
Similar Posts:
- [Solution] systemerror: the solution of parent module ” not loaded, cannot perform relative Import
- InvalidIndexNameException[Invalid index name [XXX], must be lowercase]
- Problem solving: start Python and report “importerror: no module named site” error
- [Solved] ImportError:attempted relative import with no known parent package
- [Solved] RuntimeError: Model class apps.users.models.UserProfile doesn’t declare an explicit app_label and isn’t in an application in INSTALLED_APPS.
- Python Attempted relative import in non-package,ImportError: cannot import name ‘xx’ from ‘__main
- Failed to create symbolic link ‘/usr/bin/utserver’: File exists with Error: Cannot find…
- Go build cannot find package Error [How to Solve]
- The hierarchy of the type is inconsistent problem solving
- Error in importing web project from eclipse