ModuleNotFoundError: No module named ‘xxx’; ‘xxx’ is not a package
Error.
ModuleNotFoundError: No module named ‘xxx’; ‘xxx’ is not a package
When debugging the script via pycharm, the following error occurs:
ModuleNotFoundError: No module named ‘xml.parser’; ‘xml’ is not a package
Cause.
project
|– xml
|– xml.py
Package name and .py file conflict
Solution.
Change the package name and the .py file name to be inconsistent
Read More:
- How to Solve PyInstaller Package Error: ModuleNotFoundError: No module named ‘xxxx‘
- ModuleNotFoundError: No module named ‘requests‘ [How to Solve]
- [Solved] Pychar error: modulenotfounderror: no module named ‘requests_ HTML ‘solution
- [Solved] ModuleNotFoundError: No module named ‘_polyiou‘
- [Solved] ModuleNotFoundError: No module named ‘requests‘
- [Solved] ByteTrack Error: ModuleNotFoundError: No module named ‘yolox’
- [Solved] Pytest Error: E ModuleNotFoundError: No module named ‘common
- ModuleNotFoundError: No module named ‘tensorflow.python’ And the pits encountered after installation
- [Solved] scikit-learn Error: ModuleNotFoundError: No module named ‘sklearn.utils.linear_assignment_’
- ModuleNotFoundError: no module named ‘pip‘ [How to Solve]
- [Solved] ModuleNotFoundError: No module named ‘pip‘
- [Solved] modulenotfounderror: no module named ‘torchtext.legacy.data.datasets_ utils‘
- [Solved] jupyter notebook Error: ModuleNotFoundError: No module named jupyter_nbextensions_configurator
- [Solved] Jupyter notebook use pyLDAvis Error: modulenotfounderror: no module named ‘pyLDAvis’‘
- [Mac M1] How to Solve import wordcloud Error: ModuleNotFoundError: No module named ‘wordcloud‘
- Module not found error: no module named ‘filefolder’ appears when learning engineering knowledge
- Module notfounderror when installing suds: no module named ‘client’ solution
- [How to Solve] ImportError: No module named typing
- bandersnatch Error: No module Named [How to Solve]
- Python Pandas Error: No module named ‘openpyxl‘