0
在導入oct2py模塊,在這裏我得到了什麼..在python2.7.9進口oct2py給WindowsError:[錯誤2]系統找不到指定的文件
>>> import oct2py
Traceback (most recent call last):
File "<pyshell#0>", line 1, in <module>
import oct2py
File "C:\Python27\lib\site-packages\oct2py\__init__.py", line 38, in <module>
octave = Oct2Py()
File "C:\Python27\lib\site-packages\oct2py\core.py", line 73, in __init__
self.restart()
File "C:\Python27\lib\site-packages\oct2py\core.py", line 508, in restart
logger=self.logger)
File "C:\Python27\lib\site-packages\octave_kernel\kernel.py", line 144, in __init__
self.repl = self._create_repl()
File "C:\Python27\lib\site-packages\octave_kernel\kernel.py", line 338, in _create_repl
version = subprocess.check_output(version_cmd).decode('utf-8')
File "C:\Python27\lib\subprocess.py", line 566, in check_output
process = Popen(stdout=PIPE, *popenargs, **kwargs)
File "C:\Python27\lib\subprocess.py", line 710, in __init__
errread, errwrite)
File "C:\Python27\lib\subprocess.py", line 958, in _execute_child
startupinfo)
WindowsError: [Error 2] The system cannot find the file specified
找遍幾個線程,他們談關於子處理python shell,但我沒有得到如何做到這一點。所以有人請幫我解決這個問題。