MATLAB Production Server Python クライアントのインストール
MATLAB® Production Server™ クライアント API は、MATLAB Production Server Client Libraries でダウンロードできます。オンプレミスの MATLAB Production Server インストールでは、クライアント API は にあります。ここで、MPS_INSTALL/client$MPS_INSTALL は MATLAB Production Server のインストール場所です。
サポートされている Python インタープリター
MATLAB Production Server Python® クライアントでサポートされる Python のバージョンの詳細については、Product Requirements & Platform Availability for MATLAB Production Server を参照してください。
PyPI からのインストール
MATLAB Production Server Python クライアント ライブラリは、matlab-prodserver-client · PyPI で PyPI (Python Package Index) からインストールできます。インストールするには、以下を実行します。
python -m pip install matlab-prodserver-client~=yy.r
ここで、yy は対応する MATLAB リリースの年の下 2 桁、r は年 2 回のリリース (a の場合は 1、b の場合は 2) です。
例:
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 .