Python '__main__' is not a package

Describes the cause and action for error messages.


Error Message(English):
'__main__' is not a package

Resolution


関連リンク


ModuleNotFoundError: No module named '__main__.xxxx' - Stack Overflow
https://stackoverflow.com/questions/45446418/modulenotfounderror-no-module-named-main-xxxx-main-is-n・・・

import module from other folder python (errors)
https://stackoverflow.com/questions/53844326/import-module-from-other-folder-python-errors

relative import in pycharm 2018 does not work like relative ...
https://stackoverflow.com/questions/51648724/relative-import-in-pycharm-2018-does-not-work-like-rela・・・

Python3 relative imports failing in package
https://stackoverflow.com/questions/47884390/python3-relative-imports-failing-in-package

Import a module from a relative path
https://stackoverflow.com/questions/279237/import-a-module-from-a-relative-path

python 3.x - ModuleNotFoundError: No module named '__main__.xxxx ...
https://stackoverflow.com/questions/45446418/modulenotfounderror-no-module-named-main-xxxx-main-is-n・・・

Python - ModuleNotFoundError: No module named '__main__.models ...
https://teratail.com/questions/91139

python __main__' is - ModuleNotFoundError ... - CODE Q&A Solved
https://code.i-harness.com/ja-jp/q/27e138d

__main__' python - ModuleNotFoundError: What ... - CODE Q&A Solved
https://code.i-harness.com/en/q/27e138d

Correct way to import from a standalone module in a different ...
https://python-forum.io/Thread-Correct-way-to-import-from-a-standalone-module-in-a-different-locatio・・・



Name:
Comment:



[return to Python エラーコード一覧]