所有的东西都可以在Django开发服务器上运行。在Apache中,除了使用matplotlib时,django应用程序也可以工作。这里的错误,我得到:Matplotlib和WSGI/mod_python不能在Apache上工作
No module named multiarray.
Exception Type: ImportError
Exception Value: No module named multiarray
Exception Location: /usr/share/pyshared/numpy/core/numerictypes.py in <module>, line 81
Python Executable: /usr/bin/python
Python Version: 2.6.4
从Python外壳,既语句的工作:进口numpy.core.multiarray和进口多阵列。有任何想法吗? 谢谢
当我查看numpy文件时,我发现多阵列模块,它具有'so'的扩展名。我的猜测是,mod_python没有读取这些文件。
如果您从python shell执行“from numpy.core.multiarray import typeinfo,ndarray,array,empty,dtype”,会发生什么? – Mark 2010-04-01 17:33:51
,工作正常。没有错误信息。 – 2010-04-01 17:36:22
我似乎有一个类似的问题。我正在运行py2.6,cherrypy,IIS,isapi_wsgi。 Matplotlib可以在Python shell中正常工作。尝试加载pyd模块(例如matplotlib._path)时由IIS调用失败。我检查了os.environ和sys.path。 – e1i45 2010-04-10 03:28:46