我在安装 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
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
import ccompiler
File "C:\Program Files\jython2.5.3b3\bin\numpy-1.6.1\numpy\distutils\ccompiler.py", line 15, in
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
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.
Tôi là một lập trình viên xuất sắc, rất giỏi!