简体   繁体   English

从scipy.interpolate导入interp1d挂django

[英]from scipy.interpolate import interp1d hangs django

Need to use interp1d from scipy, but if i try to import it, app can't finish loading page. 需要使用来自scipy的interp1d,但是如果我尝试导入它,则应用程序无法完成加载页面。 I have view which works fine: 我认为效果很好:

def index(request):
     return render_to_response('price/index.html')

As far as i just try to import 据我只是尝试导入

from scipy.interpolate import interp1d

Page loads forever. 页面永远加载。 No errors. 没有错误。

Finally could make it work. 终于可以使它工作了。 Need to add directive 需要添加指令

WSGIApplicationGroup %{GLOBAL}

to apache2 config. 到apache2配置。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM