Linked Questions

Popular Questions

I have the following directory structure in my python project

enter image description here

When I try to execute the test_market_rates.py file I get an Module not found error

ModuleNotFoundError: No module named 'lib'

But if I move the test_market_rates.py file to the main directory it will work without any errors

enter image description here

The following is how I have imported the module in test_market_rates.py file

from lib.utils import say_hello

print(say_hello())

Related Questions