cuốn sách gpt4 ai đã làm

python - eclipse ,jython : adding numpy module to jython

In lại Tác giả: Walker 123 更新时间:2023-11-28 16:44:25 26 4
mua khóa gpt4 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 
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')

你能帮我解决这个问题吗?谢谢!

câu trả lời hay nhất

遗憾的是,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/

26 4 0
Walker 123
Hồ sơ

Tôi là một lập trình viên xuất sắc, rất giỏi!

Nhận phiếu giảm giá taxi Didi miễn phí
Phiếu giảm giá taxi Didi
Chứng chỉ ICP Bắc Kinh số 000000
Hợp tác quảng cáo: 1813099741@qq.com 6ren.com
Xem sitemap của VNExpress