Post-installation Configuration

  • Before using Python 3.7.5, configure the following environment variables:
    # Install Python 3.7.5 as the root user.
    . /usr/local/ascendrc
    
    # Install Python 3.7.5 as a non-root user.
    . ~/.local/ascendrc
  • Software such as Toolkit provides scripts for setting process-level environment variables. You can reference the scripts in processes to automatically set environment variables. The environment variables automatically become invalid after the processes end. The default installation path of the root user is used as an example.

    If a non-root user is used for installation, replace /usr/local/Ascend in the following command with ~/Ascend. An example command is as follows:

    . ~/Ascend/ascend-toolkit/set_env.sh
    # Configure environment variables when installing the toolkit package.
    . /usr/local/Ascend/ascend-toolkit/set_env.sh    
    
    # Configure environment variables when installing the tfplugin package.
    . /usr/local/Ascend/tfplugin/set_env.sh
    
    # Configure environment variables when installing the nnrt package.
    . /usr/local/Ascend/nnrt/set_env.sh
        
    # Configure environment variables when installing the nnae package.
    . /usr/local/Ascend/nnae/set_env.sh
    
    # Configure environment variables when installing the toolbox package.
    . /usr/local/Ascend/toolbox/set_env.sh
    You can also configure permanent environment variables by modifying the ~/.bashrc file. The procedure is as follows:
    1. Run the vi ~/.bashrc command in any directory as the running user to open the .bashrc file and append the preceding lines to the file.
    2. Run the :wq! command to save the file and exit.
    3. Run the source ~/.bashrc command for the modification to take effect immediately.
  • During distributed training, configure the NIC IP address of the device. For details, see Configuring the NIC IP Address of a Device. If you want to configure the NIC IP addresses of devices in batches, use the device IP configuration script (ascend-deployer/tools/DeviceIP-conf.sh) provided by the ascend-deployer tool. For details, see Deploying Device IP Addresses in Batches.
  • During the installation, the Docker user group is created and the Docker service is started. After the installation is complete, you can uninstall third-party components that may have security risks, such as GCC, g++, and JDK, from the system.
  • If you want to use the tool to install gcc 7.3.0, you need to create a soft link first. For example, if the gcc 7.3.0 is installed by the root user, the soft link is ln -sf /usr/local/gcc7.3.0/bin/gcc /usr/bin/gcc.