I create a simple python project in Pychram as shown in figure.
It works fine when I run it in Pychram.(run b_code.py, shows 'wow'/n'hellow')
However, when I'm trying to run b_code.py in terminal.
I got [ModuleNotFoundError: No module named 'package_a']
Trying to google this issue but it still confuse me.
How can I fix the issue?
Thank you,
Solution: It works by following code
import sys
sys.path.append("..")
from package_a import a_code
print('wow')
a_code.say_hellow()