当前位置: 首页 > 工具软件 > Oct2Py > 使用案例 >

python oct_安装在python oct2py中使用的gnuoctave

章晗日
2023-12-01

我正在尝试安装gnuoctave,以便在pythonoct2py中使用。我已经单独使用octave 3.6.4好几个月了,但我不能从python调用函数octave脚本。在python中:import oct2py

我收到错误消息:

^{pr2}$

我的路径在系统变量中添加了以下内容:C:\Program Files\Java\jdk1.7.0\bin;;C:\Python27\;C:\Octave-3.6.4\mysys

我想知道“GNUOctave”是否与我安装的Octave版本不同?或者有什么我没有做的事?在

将路径更改为bin后,在python shell中出现以下错误:>>> oc = oct2py.Oct2Py()

Traceback (most recent call last):

File "", line 1, in

oc = oct2py.Oct2Py()

File "C:\Python27\lib\site-packages\oct2py-1.3.0-py2.7.egg\oct2py\session.py", line 67, in __init__

self.restart()

File "C:\Python27\lib\site-packages\oct2py-1.3.0-py2.7.egg\oct2py\session.py", line 503, in restart

self._session = _Session()

File "C:\Python27\lib\site-packages\oct2py-1.3.0-py2.7.egg\oct2py\session.py", line 540, in __init__

self.proc = self.start()

File "C:\Python27\lib\site-packages\oct2py-1.3.0-py2.7.egg\oct2py\session.py", line 572, in start

return self.start_subprocess()

File "C:\Python27\lib\site-packages\oct2py-1.3.0-py2.7.egg\oct2py\session.py", line 589, in start_subprocess

raise Oct2PyError(errmsg)

Oct2PyError: Please install GNU Octave and put it in your path

 类似资料: