python安装matlabb库_使用Anaconda安装“MATLAB Engine for Python”的问题

我正在使用Python 3.4.3 | OS X 10.10.5和

these instructions to install MATLAB Engine for Python之后的Anaconda 2.3.0(x86_64).安装似乎成功了,但在启动python&试图导入,我看到以下内容:

Python 3.4.3 |Anaconda 2.3.0 (x86_64)| (default, Oct 20 2015, 14:27:51)

[GCC 4.2.1 (Apple Inc. build 5577)] on darwin

Type "help", "copyright", "credits" or "license" for more information.

>>> import matlab.engine

Traceback (most recent call last):

File "/Users/tyler/.local/lib/python3.4/site-packages/matlab/engine/__init__.py", line 42, in

pythonengine = importlib.import_module("matlabengineforpython"+_PYTHONVERSION)

File "/Users/tyler/anaconda/lib/python3.4/importlib/__init__.py", line 109, in import_module

return _bootstrap._gcd_import(name[level:], package, level)

File "", line 2254, in _gcd_import

File "", line 2237, in _find_and_load

File "", line 2224, in _find_and_load_unlocked

ImportError: No module named 'matlabengineforpython3_4'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):

File "/Users/tyler/.local/lib/python3.4/site-packages/matlab/engine/__init__.py", line 58, in

pythonengine = importlib.import_module("matlabengineforpython"+_PYTHONVERSION)

File "/Users/tyler/anaconda/lib/python3.4/importlib/__init__.py", line 109, in import_module

return _bootstrap._gcd_import(name[level:], package, level)

File "", line 2254, in _gcd_import

File "", line 2237, in _find_and_load

File "", line 2226, in _find_and_load_unlocked

File "", line 1191, in _load_unlocked

File "", line 1161, in _load_backward_compatible

File "", line 539, in _check_name_wrapper

File "", line 1715, in load_module

File "", line 321, in _call_with_frames_removed

ImportError: dlopen(/Applications/MATLAB_R2015b.app/extern/engines/python/dist/matlab/engine/maci64/matlabengineforpython3_4.so, 2): Library not loaded: @rpath/libpython3.4m.dylib

Referenced from: /Applications/MATLAB_R2015b .app/extern/engines/python/dist/matlab/engine/maci64/matlabengineforpython3_4.so

Reason: image not found

During handling of the above exception, another exception occurred:

Traceback (most recent call last):

File "", line 1, in

File "/Users/tyler/.local/lib/python3.4/site-packages/matlab/engine/__init__.py", line 60, in

raise EnvironmentError('The installation of MATLAB Engine for Python is '

OSError: The installation of MATLAB Engine for Python is corrupted. Please reinstall it or contact MathWorks Technical Support for assistance.

在研究这个问题时,我在MathWorks的网站上找到了这个问题的several other references,但都没有解析.最后一个链接表明问题可能出在dynamic linking.

鉴于有多少科学工具箱仅在MATLAB中可用,能够使用Anaconda调用此引擎将非常有用.虽然还有其他可用的软件包支持此功能,但它们总是存在限制或其他复杂性,如客户端 – 服务器体系结构.

任何建议都是最受欢迎的.

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值