Install the Correct Miniconda Version (aarch64)
执行:
# Download the proper 64-bit version
wget -c https://mirrors.tuna.tsinghua.edu.cn/anaconda/miniconda/Miniconda3-latest-Linux-aarch64.sh


# Install with auto-accept license
bash Miniconda3-latest-Linux-aarch64.sh -b -p $HOME/miniconda3
 Configure Conda Properly
执行:
# Add to PATH
echo 'export PATH="$HOME/miniconda3/bin:$PATH"' >> ~/.bashrc

# Initialize conda
source ~/.bashrc

conda init bash

exec bash  
# Restart shell
Verify Installation   验证安装
执行:

conda --version
# Should show: conda 24.x.x


Conda 更换源,软件更新
为了之后使用安装新的包、更新conda更快,具体操作如下:


 

conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free

conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main



显示下载地址:
conda config --set show_channel_urls yes

替换源之后,我们需要使用

conda update conda

来升级 conda,

pip 换源:

# 设置全局默认镜像源为清华源
pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
 
# 设置信任该镜像源(避免SSL报错)
pip config set install.trusted-host pypi.tuna.tsinghua.edu.cn
 
# 若使用 pip3,需针对 pip3 单独配置(部分系统 pip 和 pip3 配置分离)
pip3 config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
pip3 config set install.trusted-host pypi.tuna.tsinghua.edu.cn
 

之后使用conda create -n {你的环境名} python=版本号创建一个你的python环境

conda create -n yolo python=3.12.9

 

更多推荐