久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

在 Anaconda Python (Linux) 中安裝 Matlab 引擎

Install Matlab engine in Anaconda Python (Linux)(在 Anaconda Python (Linux) 中安裝 Matlab 引擎)
本文介紹了在 Anaconda Python (Linux) 中安裝 Matlab 引擎的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

問題描述

我正在嘗試使用 anaconda python 3.4 在 CentOS 7 上為 Matlab R2016a 安裝 Matlab Engine for Python.

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

我執行了以下命令:

source activate py34 # Default is python 3.5
python setup.py install

輸出是:

running install
running build
running build_py
running install_lib
creating /root/.local/lib/python2.7/site-packages/matlab
creating /root/.local/lib/python2.7/site-packages/matlab/_internal
copying build/lib/matlab/_internal/mlarray_sequence.py -> /root/.local/lib/python2.7/site-packages/matlab/_internal
copying build/lib/matlab/_internal/__init__.py -> /root/.local/lib/python2.7/site-packages/matlab/_internal
copying build/lib/matlab/_internal/mlarray_utils.py -> /root/.local/lib/python2.7/site-packages/matlab/_internal
copying build/lib/matlab/mlarray.py -> /root/.local/lib/python2.7/site-packages/matlab
creating /root/.local/lib/python2.7/site-packages/matlab/engine
copying build/lib/matlab/engine/engineerror.py -> /root/.local/lib/python2.7/site-packages/matlab/engine
copying build/lib/matlab/engine/futureresult.py -> /root/.local/lib/python2.7/site-packages/matlab/engine
copying build/lib/matlab/engine/fevalfuture.py -> /root/.local/lib/python2.7/site-packages/matlab/engine
copying build/lib/matlab/engine/basefuture.py -> /root/.local/lib/python2.7/site-packages/matlab/engine
copying build/lib/matlab/engine/matlabengine.py -> /root/.local/lib/python2.7/site-packages/matlab/engine
copying build/lib/matlab/engine/__init__.py -> /root/.local/lib/python2.7/site-packages/matlab/engine
copying build/lib/matlab/engine/enginesession.py -> /root/.local/lib/python2.7/site-packages/matlab/engine
copying build/lib/matlab/engine/_arch.txt -> /root/.local/lib/python2.7/site-packages/matlab/engine
copying build/lib/matlab/engine/matlabfuture.py -> /root/.local/lib/python2.7/site-packages/matlab/engine
copying build/lib/matlab/mlexceptions.py -> /root/.local/lib/python2.7/site-packages/matlab
copying build/lib/matlab/__init__.py -> /root/.local/lib/python2.7/site-packages/matlab
byte-compiling /root/.local/lib/python2.7/site-packages/matlab/_internal/mlarray_sequence.py to mlarray_sequence.pyc
byte-compiling /root/.local/lib/python2.7/site-packages/matlab/_internal/__init__.py to __init__.pyc
byte-compiling /root/.local/lib/python2.7/site-packages/matlab/_internal/mlarray_utils.py to mlarray_utils.pyc
byte-compiling /root/.local/lib/python2.7/site-packages/matlab/mlarray.py to mlarray.pyc
byte-compiling /root/.local/lib/python2.7/site-packages/matlab/engine/engineerror.py to engineerror.pyc
byte-compiling /root/.local/lib/python2.7/site-packages/matlab/engine/futureresult.py to futureresult.pyc
byte-compiling /root/.local/lib/python2.7/site-packages/matlab/engine/fevalfuture.py to fevalfuture.pyc
byte-compiling /root/.local/lib/python2.7/site-packages/matlab/engine/basefuture.py to basefuture.pyc
byte-compiling /root/.local/lib/python2.7/site-packages/matlab/engine/matlabengine.py to matlabengine.pyc
byte-compiling /root/.local/lib/python2.7/site-packages/matlab/engine/__init__.py to __init__.pyc
byte-compiling /root/.local/lib/python2.7/site-packages/matlab/engine/enginesession.py to enginesession.pyc
byte-compiling /root/.local/lib/python2.7/site-packages/matlab/engine/matlabfuture.py to matlabfuture.pyc
byte-compiling /root/.local/lib/python2.7/site-packages/matlab/mlexceptions.py to mlexceptions.pyc
byte-compiling /root/.local/lib/python2.7/site-packages/matlab/__init__.py to __init__.pyc
running install_egg_info
Writing /root/.local/lib/python2.7/site-packages/matlabengineforpython-R2016a-py2.7.egg-info

它以某種方式將 matlab 引擎安裝到系統的 python 版本中,而不是 anaconda 的 py34 虛擬環境.我在 OSX 上注意到 this 并且它在我的 Mac 上工作!任何人都可以在 CentOS 上提供幫助嗎?

It somehow install matlab engine into system's python version other than anaconda's py34 virtual env. I noticed this on OSX and it does work on my mac! Anyone can help with this on CentOS?

推薦答案

cd "matlabrootexternenginespython"
python setup.py install --prefix="installdir"

對于 Unix (OSX10) python2.7,使用 Anaconda

For Unix (OSX10) python2.7, using Anaconda

cd /Applications/MATLAB_R2015a.app/extern/engines/python
python setup.py install --prefix="/Users/user/anaconda/"

這是 Matlab 文檔:

Here is the Matlab Document:

https://www.mathworks.com/help/matlab/matlab_external/install-matlab-engine-api-for-python-in-nondefault-locations.html

這篇關于在 Anaconda Python (Linux) 中安裝 Matlab 引擎的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

相關文檔推薦

Troubles while parsing with python very large xml file(使用 python 解析非常大的 xml 文件時出現問題)
Find all nodes by attribute in XML using Python 2(使用 Python 2 在 XML 中按屬性查找所有節點)
Python - How to parse xml response and store a elements value in a variable?(Python - 如何解析 xml 響應并將元素值存儲在變量中?)
How to get XML tag value in Python(如何在 Python 中獲取 XML 標記值)
How to correctly parse utf-8 xml with ElementTree?(如何使用 ElementTree 正確解析 utf-8 xml?)
Parse XML from URL into python object(將 XML 從 URL 解析為 python 對象)
主站蜘蛛池模板: 51av视频| 久久久久久久成人 | 黄色成年人网站 | 97中文字幕| 免费av毛片 | 少妇一级淫片aaaaaa | 久久青青 | 一区二区日韩 | 97在线免费视频 | 日韩视频专区 | 黄色片免费网站 | 91亚洲国产成人久久精品网站 | 日韩av在线网站 | 欧美精产国品一二三区 | 免费视频一区 | 中文字幕综合 | 黄色录像免费看 | 亚洲小视频 | 欧美精品在线免费观看 | 中文字字幕码一二三区 | 免费一区二区三区 | 亚洲第十页 | av在线精品 | 午夜99| 亚洲一区二区久久 | 在线天堂视频 | 亚洲二区视频 | 少妇特黄a一区二区三区 | 日韩免费一区 | 福利视频午夜 | 丰满少妇高潮在线观看 | 亚洲日本高清 | 成人在线a | 日韩在线视频一区 | 青青久操 | 欧美激情小视频 | 国产成人精品亚洲男人的天堂 | 中文文字幕文字幕高清 | 日韩精品一区二区视频 | 91网站免费 | 国产女人水真多18毛片18精品 |