gpt4 book ai didi

python - eclipse ,jython : adding numpy module to jython

转载 作者:行者123 更新时间:2023-11-28 16:44:25 25 4
gpt4 key购买 nike

我在安装 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.

关于python - eclipse ,jython : adding numpy module to jython,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15365720/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com