using scipy in django with apache and mod_wsgi
问题 I have defined a django view that uses scipy.optimize.curve_fit . This works without problems using the django development server, but when I deploy the Django application with Apache and mod_wsgi the view function gets stuck importing curve_fit: from scipy.optimize import curve_fit When this line is removed the rest of the app works well on the Apache server. Why does this line not work with Apache and mod_wsgi? 回答1: In your WSGI file you will have something that looks like this: