title: ModuleNotFoundError: by importing function from my own module
body: <p>i have the following project structure:</p>
  <pre><code>-dags
  ----script1.py
  ----script2.py
  ----projects
  
  --------project1
  ------------modules
  ----------------__init__.py
  ----------------module1.py
  ----------------module2.py
  ----------------module3.py
  
  --------project2
  ------------modules
  ----------------__init__.py
  ----------------module1.py
  ----------------module2.py
  ----------------module3.py
  </code></pre>
  <p>my <code>module1.py</code>:</p>
  <pre><code>import sklearn
  import pandas as pd
  
  def some_func(X,y):
      res = sklearn.linear_model.LinearRegression(X,y)
      print('Execute function)
      return res
  </code></pre>
  <p>When I import my function into <code>script1.py</code> file and try to run to run the function I get an error <code>ModuleNotFoundError: No module named 'sklearn'</code></p>
  <p>Import is done in the following way:</p>
  <pre><code>from projects.project1.modules.module1 import some_func
  </code></pre>
  <p>How can i fix this problem?</p>