安装 MATLAB Production Server Python 客户端
MATLAB® Production Server™ 客户端 API 可从 MATLAB Production Server 客户端库下载。在本地 MATLAB Production Server 安装中,客户端 API 位于 ,其中 MPS_INSTALL/client$MPS_INSTALL 是 MATLAB Production Server 的安装位置。
支持的 Python 解释器
有关 MATLAB Production Server Python® 客户端支持的 Python 版本的信息,请参阅 MATLAB Production Server 的产品要求和平台可用性。
从 PyPI 安装
您可以从 PyPI(Python 包索引 matlab-prodserver-client · PyPI)安装 MATLAB Production Server Python 客户端库。要安装它,请运行
python -m pip install matlab-prodserver-client~=yy.r
其中 yy 是相应 MATLAB 版本发布年份的最后两位数,r 是半年发布一次的版本(1 代表 a,2 代表 b)。
示例:
python -m pip install matlab-prodserver-client~=24.2
从安装脚本安装
除了从 PyPI 安装外,您还可以从安装脚本安装。MATLAB Production Server Python 客户端提供了标准的 Python 安装脚本。该脚本会将所需的模块安装到您的 Python 环境中。
导航到 Python 客户端 API 文件夹。
例 1. UNIXcd MPS_INSTALL/client/python
例 2. Windowscd MPS_INSTALL\client\python
安装客户端。验证您在运行脚本的目录中具有写入和执行权限。
python -m pip install .