title: How to use imports in Jython, used as standalone jar?
body: <p>I want to run a Java code, which is :</p>
  
  <pre><code>import org.python.util.PythonInterpreter;
  
  public class PyConv {
      public static void main(String[] args){
          PythonInterpreter interpreter = new PythonInterpreter();
          interpreter.execfile("Test.py");
    }
  }
  </code></pre>
  
  <p>And the Test.py file;</p>
  
  <pre><code>import pandas
  import numpy
  
  df = pd.read_csv("Myfile.csv", header=0)
  </code></pre>
  
  <p>But I would get an error:</p>
  
  <pre><code>Exception in thread "main" Traceback (most recent call last):
    File "Test.py", line 1, in &lt;module&gt;
      import pandas
  ImportError: No module named pandas
  </code></pre>
  
  <p>So, How would one import the required module, to make the code run?
  And also I am using the Jython as a external jar in my java code. Is there any other way which would make my job simpler?</p>