Python 找不到内核32模块
运行pymatlab,更具体地说,命令Python 找不到内核32模块,python,matlab,kernel32,Python,Matlab,Kernel32,运行pymatlab,更具体地说,命令session=pymatlab.session\u factory()会导致 异常AttributeError:“'MatlabSession'对象没有属性 忽略>中的“引擎” 这里建议的解决方案 将C:\Python27\lib\site packages\pymatlab\sessionfactory.py中的第51行从 MatlabSession(path=basedir,bufsize=output_buffer_size) 致: 我做到了
session=pymatlab.session\u factory()
会导致
异常AttributeError:“'MatlabSession'对象没有属性
忽略>中的“引擎”
这里建议的解决方案
将C:\Python27\lib\site packages\pymatlab\sessionfactory.py
中的第51行从
MatlabSession(path=basedir,bufsize=output_buffer_size)
致:
我做到了
但是,模块C类型中现在出现了另一个问题:
C:\Python27\lib\ctypes\__init__.pyc in __init__(self, name, mode, handle, use_errno, use_last_error)
363
364 if handle is None:
--> 365 self._handle = _dlopen(self._name, mode)
366 else:
367 self._handle = handle
WindowsError: [Error 126] The specified module could not be found
放置断点表明所讨论的模块是kernel32
有什么建议吗?我正在运行Windows 8和64位Python 2.7
谢谢在matlab.py中更改第56行 将“glnxa64”替换为“win32”
C:\Python27\lib\ctypes\__init__.pyc in __init__(self, name, mode, handle, use_errno, use_last_error)
363
364 if handle is None:
--> 365 self._handle = _dlopen(self._name, mode)
366 else:
367 self._handle = handle
WindowsError: [Error 126] The specified module could not be found