安装GNU octave用于python oct2py

时间:2014-06-09 20:50:39

标签: python octave oct2py

我正在尝试安装GNU octave以便在python oct2py中使用。我一直使用octave 3.6.4几个月没有问题,但我不能从python调用函数octave脚本。在python中:

 import oct2py

我收到错误消息:

 Please install GNU Octave and put it in your path

我的路径添加了以下系统变量:

 C:\Program Files\Java\jdk1.7.0\bin;;C:\Python27\;C:\Octave-3.6.4\mysys

我想知道GNU Octave'是否与我安装的八度音程版本不同?或者,如果还有一些我没有做的事情?

更改bin的路径后,python shell中出现以下错误:

 >>> oc = oct2py.Oct2Py()

Traceback (most recent call last):
  File "<pyshell#19>", line 1, in <module>
    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

0 个答案:

没有答案