所有的東西都可以在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