0

I want to run java code in IntelliJ IDEA:

public static void main(String[] args) {
        PythonInterpreter py = new PythonInterpreter();
        py.exec("from send2trash import send2trash \nsend2trash('cat-2.jpg')");
    }

and in the console I get : Exception in thread "main" Traceback (most recent call last): File "", line 1, in ImportError: No module named send2trash

Can somebody help me?

0 Answers0