Installing Miniconda
TensorFlow and other third-party packages on which DLRM data preprocessing and code training depend can be managed in a unified manner using Miniconda, avoiding incompatibility issues.
- Use PuTTY to log in to the server as the root user.
- Create a Miniconda installation directory.
1mkdir -p /path/to/miniconda3
- Download miniconda.sh to /path/to/miniconda3.
1wget https://repo.anaconda.com/miniconda/Miniconda3-py39_24.3.0-0-Linux-aarch64.sh -O /path/to/miniconda3/miniconda.sh
- Install Miniconda.
bash /path/to/miniconda3/miniconda.sh -b -u -p /path/to/miniconda3
Delete miniconda.sh, which you will no longer use.
rm -rf /path/to/miniconda3/miniconda.sh
- (Optional) Run the following commands to initialize Miniconda:
1 2
/path/to/miniconda3/bin/conda init bash /path/to/miniconda3/bin/conda init zsh
After the installation is complete, the conda directory (/path/to/miniconda3/condabin) is added to the PATH environment variable.
- Close the window of connecting to the server and reconnect to the server. The temporary proxy needs to be reconfigured. See Method 1: Configuring a Temporary Network Proxy.
- Check whether Miniconda is installed.
1conda -V
If the command output shows that the version is 24.3.0, the installation is successful.
- Configure the conda proxy environment.
- Create a .condarc file.
1vi /root/.condarc - Press i to enter the insert mode and add the following content to the .condarc file.
Set the IP address and port as required.
channels: - defaults proxy_servers: http: http://Proxy_IP_address:Proxy_port https: http://Proxy_IP_address:Proxy_port ssl_verify: false show_channel_urls: true allow_other_channels: true
- Press Esc, type :wq!, and press Enter to save the settings and exit.
- Create a .condarc file.
Parent topic: Environment Configuration