Recently, at the same level or in a different level of directory, importing a module, it shows that it does not exist, but clearly exists, Baidu looked for a lot of not found, tried to
import sys ('/path/to/test') // Here you can get the absolute path automatically using the class method
It's not working.
Solution:pycharm does not automatically add the current file directory to its own course_path. right-click make_directory as-->sources path to add the current working folder to the source_path and you're done.
The above solution to this pycharm-based import module shows that it does not exist is all that I have shared with you, and I hope that it will give you a reference, and I hope that you will support me more.