+-
Eclipse-jython:将numpy模块添加到jython
我在安装numpy-1.6.1时遇到问题.它说NotImplementedError我使用 Eclipse和Jython进行开发.

命令窗口:

C:\Program Files\jython2.5.3b3\bin\numpy-1.6.1>jython setup.py install

从numpy源目录运行.跟踪(最近一次调用):

File "setup.py", line 196, in <module>
    setup_package()

  File "setup.py", line 173, in setup_package
    from numpy.distutils.core import setup

  File "C:\Program Files\jython2.5.3b3\bin\numpy-1.6.1\numpy\distutils\__init__.py", line 7, in <module>
    import ccompiler
  File "C:\Program Files\jython2.5.3b3\bin\numpy-1.6.1\numpy\distutils\ccompiler.py", line 15, in <module>
    from numpy.distutils.exec_command import exec_command

  File "C:\Program Files\jython2.5.3b3\bin\numpy-1.6.1\numpy\distutils\exec_command.py", line 585, in <module>
    raise NotImplementedError('exec_command tests for ', os.name)

NotImplementedError: ('exec_command tests for ', 'java')

您愿意帮我解决这个问题吗?谢谢!

最佳答案
遗憾的是,Jython不支持numpy.从 FAQ:

Does NumPy/SciPy work with Jython?

No. Simply put, Jython runs on top of the Java Virtual Machine and has no way to interface with extensions written in C for the standard Python (CPython) interpreter.

点击查看更多相关文章

转载注明原文:Eclipse-jython:将numpy模块添加到jython - 乐贴网