Environment Variable Configuration
After installing the PyACL package, you must configure the environment variables in the operating environment. Otherwise, the ACL cannot be imported.
- Configure the Python environment variables and add ${pyACL_install_path}/pyACL/python/site-packages/acl to Python.
Example command:
export PYTHONPATH=${pyACL_install_path}/pyACL/python/site-packages/acl:$PYTHONPATH
${pyACL_install_path} indicates the installation path of the pyACL package. (The pyACL package is installed independently. If the pyACL package is a combined package, for example, Toolkit and NNRT, ${pyACL_install_path} indicates the directory where pyACL is located after the combination package is successfully installed.
- Then, add ${acllib_install_path}/acllib/lib64 to $LD_LIBRARY_PATH.
Example command:
export LD_LIBRARY_PATH=${acllib_install_path}/acllib/lib64:$LD_LIBRARY_PATH
${acllib_install_path} indicates the installation path of ACLLib. In the combined package installation scenario, for example, Toolkit and NNRT, ${acllib_install_path} indicates the directory where ACLLib is located after the combined package is successfully installed.
Configuring environment variables for an Atlas 500 AI edge station are described as follows:
- Configure the Python environment variables and add /home/data/miniD/driver/lib64 to Python.
Example command:
export PYTHONPATH=/home/data/miniD/driver/lib64:$PYTHONPATH
- Configure $LD_LIBRARY_PATH and add /home/data/miniD/driver/lib64 to $LD_LIBRARY_PATH.
Example command:
export LD_LIBRARY_PATH=/home/data/miniD/driver/lib64:$LD_LIBRARY_PATH
- Configure the Python environment variables and add /home/data/miniD/driver/lib64 to Python.