2010-06-18 40 views
2

IronPython的2.6, 蟒蛇2.6.5, numpy的, SciPy的IronPython的通話numpy的問題

 
import sys 
sys.path.append(r'D:\Python26\dll') 
sys.path.append(r'D:\Python26\Lib') 
sys.path.append(r'D:\Python26\Lib\site-packages') 

» import numpy 
Traceback (most recent call last): 
    File "", line 1, in 
    File "D:\Python26\Lib\site-packages\numpy\__init__.py", line 132, in 
    File "D:\Python26\Lib\site-packages\numpy\add_newdocs.py", line 9, in 
    File "D:\Python26\Lib\site-packages\numpy\lib\__init__.py", line 4, in 
    File "D:\Python26\Lib\site-packages\numpy\lib\type_check.py", line 8, in 
    File "D:\Python26\Lib\site-packages\numpy\core\__init__.py", line 5, in 
ImportError: No module named multiarray

有什麼不對? 謝謝。

+3

我相信你需要鐵定的。 http://code.google.com/p/ironclad/ – jcao219 2010-06-18 16:23:27

+0

我知道這一點,但它也有一些錯誤: http://code.google.com/p/ironclad/issues/detail?id=26 – Begtostudy 2010-06-19 00:19:10

+0

你是否用-X:框架? – jcao219 2010-06-20 20:36:06

回答

0

從評論,它看起來像Giles' answer的伎倆:

From looking at the IronPython source, it looks like you'll need to set LanguageSetup.Options["Frames"] = ScriptingRuntimeHelpers.True when you're setting up hosting.