CNTK icon indicating copy to clipboard operation
CNTK copied to clipboard

Python cgi - no module named cntk

Open Arminea opened this issue 9 years ago • 1 comments

Hi, I' making a web form for uploading images. I want to predict a class of the image and return a result to user. But when I import cntk in my cgi script the error ImportError: No module named 'cntk' appears. The odd thing about it is that when I load model via my python test script in command line everything is ok. No error. How is that possible?

Arminea avatar Feb 12 '17 16:02 Arminea

Path to cntk python was not in python path of Apache. These two lines helped

import sys
sys.path.append('D:\\CNTK\\bindings\\python')

Arminea avatar Feb 13 '17 17:02 Arminea