sudo apt install libopenblas-dev libblas-dev m4 cmake cython
pip config set global.index-url https://repo.huaweicloud.com/repository/pypi/simple
sudo apt-get autoremove python2.7
sudo ln -s /usr/bin/python3.7 /usr/bin/python
sudo ln -s /usr/bin/pip3 /usr/bin/pip
sudo apt-get install yasm
sudo apt-get install python3-pip libopenblas-dev libopenmpi-dev libomp-dev
sudo -H pip3 install --upgrade setuptools
sudo -H pip3 install Cython
torch 安装包
python -m pip install --upgrade pip
pip install torch-1.10.0-cp37-cp37m-manylinux2014_aarch64.whl