Environment Variable Configuration

After installing the CANN package, you must configure pyACL-related environment variables. Otherwise, import acl cannot be used.
  • If you have installed the cann-toolkit software package:
    # Install Toolkit as the root user.
    . /usr/local/Ascend/ascend-toolkit/set_env.sh 
    # Install Toolkit as a non-root user.
    . ${HOME}/Ascend/ascend-toolkit/set_env.sh 
  • If you have installed the cann-nnrt software package:
    # Install NNRT as the root user.
    . /usr/local/Ascend/nnrt/set_env.sh
    # Install NNRT as a non-root user.
    . ${HOME}/Ascend/nnrt/set_env.sh
  • If you have installed the cann-nnae software package:
    # Install NNAE as the root user.
    . /usr/local/Ascend/nnae/set_env.sh 
    # Install NNAE as a non-root user.
    . ${HOME}/Ascend/nnae/set_env.sh

Configuring environment variables for an Atlas 500 AI edge station is described as follows:

. /opt/ascend/nnrt/set_env.sh

(Earlier version) Configuring environment variables for an Atlas 500 AI edge station is described as follows:

  • Add /home/data/miniD/driver/lib64 to the Python environment variable PYTHONPATH.

    Example command:

    export PYTHONPATH=/home/data/miniD/driver/lib64:$PYTHONPATH
  • Add /home/data/miniD/driver/lib64 to LD_LIBRARY_PATH.

    Example command:

    export LD_LIBRARY_PATH=/home/data/miniD/driver/lib64:$LD_LIBRARY_PATH