-
Python: Required. Model Server for Apache MXNet (MMS) works with Python 2 or 3. When installing MMS, we recommend that you use a Python and Conda environment to avoid conflicts with your other Apache MXNet or Open Neural Network Exchange (ONNX) installations.
-
protoc: Optional. If you plan to use ONNX features, you need to install the protobuf compiler. Install it before installing MMS.
-
Curl: Optional. Curl is used in all of the examples. Install it with your preferred package manager.
-
Unzip: Optional. Unzip allows you to easily extract model files and inspect their content. If you choose to use it, associate it with
.model
extensions.
To install MMS for the first time, install Python, then run the following command:
pip install mxnet-model-server
To upgrade from a previous version of MMS, run:
pip install -U mxnet-model-server
If you prefer, you can clone MMS from source code. First, run the following command:
git clone https://github.com/awslabs/mxnet-model-server.git && cd mxnet-model-server
To install MMS, run:
pip install .
To upgrade MMS, run:
pip install -U .
If you plan to develop with MMS and change some of the source code, install it from source code and make your changes executable with this command:
pip install -e .
To upgrade MMS from source code and make changes executable, run:
pip install -U -e .
Issue | Platform | Solution |
---|---|---|
Could not find "protoc" executable! | Ubuntu | Run sudo apt-get install protobuf-compiler libprotoc-dev . |
macOS | Run conda install -c conda-forge protobuf . |
|
Missing LibGFortran library | Ubuntu | Run apt-get install libgfortran3 . |
Amazon Linux | Run yum install gcc-gfortran . |