Anaconda install Matlab Engine on Linux

后端 未结 3 980
失恋的感觉
失恋的感觉 2020-12-11 05:59

I\'m trying to install Matlab Engine for Python on CentOS 7 for Matlab R2016a using anaconda python 3.4.

I executed the following commands:



        
3条回答
  •  借酒劲吻你
    2020-12-11 06:47

    Just a reminder for those who have multiple virtual envs under the anacodna folder, after doing python setup.py install --prefix="/Users/user/anaconda/" as prompted by @Leighton, the matlab engine package is actually installed under the separate anacodna3/lib/python2.7/site-package/matlab folder rather than the normal anaconda3/lib/python3.7/site-package. So you need to manually move that matlab folder to the site-package folder your python is using. If you have multiple virtual envs, move it to the corresponding site-package folder of the virtual env you will run program.

提交回复
热议问题