error while executing py.textwrap.wrap(T)
1 回表示 (過去 30 日間)
古いコメントを表示
I am working on MATLAB 2015a, and would like to run Python script on matlab. I tried the example, unfortunately I get an error: Undefined variable "py" or class "py.textwrap.wrap".
This is the output for pyversion: version: '2.7' executable: 'C:\Python27\pythonw.exe' library: 'C:\Python27\python27.dll' home: 'C:\Python27' isloaded: 0
Shouldn't isloaded be 1 insead of 0?
回答 (2 件)
Robert Snoeberger
2015 年 7 月 6 日
Are you using 64-bit MATLAB? If so, did you check if both MATLAB and Python are 64-bit?
2 件のコメント
Robert Snoeberger
2015 年 7 月 7 日
Can you provide the output of the following two MATLAB commands?
>> computer arch
>> system('C:\Python27\pythonw.exe -c "import platform; print platform.architecture()"');
Matthew Connolly
2015 年 12 月 16 日
It seems like this question was never ansewered. I am running into the same problem. My output from the aforementioned commands is as follows:
>> computer arch
ans =
win64
>> system('C:\Python27\pythonw.exe -c "import platform; print platform.architecture()"');
('64bit', 'WindowsPE')
Any help on this would be appreciated.
1 件のコメント
Robert Snoeberger
2015 年 12 月 17 日
I recommend that you contact MathWorks technical support [1].
参考
カテゴリ
Help Center および File Exchange で Call MATLAB from Python についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!