No module named difflib
Posted
by bugbug
on Stack Overflow
See other posts from Stack Overflow
or by bugbug
Published on 2010-04-02T03:37:41Z
Indexed on
2010/04/02
3:43 UTC
Read the original article
Hit count: 360
I want to execute python code from C# with following code.
static void Main(string[] args)
{
ScriptEngine engine = Python.CreateEngine();
ScriptSource source = engine.CreateScriptSourceFromFile(@"F:\Script\extracter.py");
source.Execute();
}
I have the problem at line source.Execute(), I got error "No module named difflib".
What is wrong in my code?
This is my python code (extracter.py).
import re
import itertools
import difflib
print "Hello"
© Stack Overflow or respective owner