I try to understand where is my problem. This is my project
└── test_folder
|___ __init__.py
├── foled_1
│ ├── __init__.py
│ └── file_1.py
└── foled_2
├── __init__.py
├── file_2.py
When I try to run the script of file_1.py from the PyCharm, everything works perfectly for me. But when I try to run this file via terminal (python3 file_1.py) I got the error:
Traceback (most recent call last):
File "file_1.py", line 1, in <module>
from foled_2.file_2 import a
ModuleNotFoundError: No module named 'foled_2'
The script of file_1.py is:
from foled_2.file_2 import a
print(a)
print("Hello")
The script of file_2.py is:
a = 2