There is a test script with the scikit-learn library import:

#!/home/host1541587/virtenv/bin/python # coding: utf8 print "Content-type: text/html\n\n" import sklearn print 'hello world' 

It uses the virtual environment in which sklearn is installed. When running from the command line:

 ~/example.ru/htdocs/www/hello.py 

script works! But when I start from the browser, I get an error 500 Internal Server Error. If you remove the line from import sklearn, then hello world is displayed, the code works. Apparently, the problem is in the scikit-learn library itself, if you execute the script from the browser. Help me to understand! (all my other libraries are working correctly)

    0