AMCT Installation with .whl Package Built from Source Package

If the AMCT installation server does not have some dependencies for source code build and installation, you can build the source package into a .whl package and install it. The following describes how to build and install AMCT (TensorFlow).

  1. Install the wheel dependency required for the building.

    Run the pip3 list command to check whether wheel exists. If yes, skip this step. If no, run the following command to install it:

    pip3 install wheel --user
  2. Decompress the TensorFlow package.
    tar -zxvf amct_tensorflow-{version}-py3-none-linux_{arch}.tar.gz
  3. Build the .whl package.

    Go to the extracted directory and run the following command to perform building:

    cd amct_tensorflow-{version}  && python3 setup.py bdist_wheel

    After the building is complete, find the required .whl package in the dist directory.

  4. Install AMCT by using the .whl package.
    pip3 install amct_tensorflow-{version}-py3-none-any.whl --user
    If the following message is displayed, the installation is successful:
    1
    Successfully installed amct-tensorflow-{version}