赞
踩
sudo update-alternatives --config python
应出现如下界面:
若未出现,则说明未建立软链接,不要紧,用方法2
sudo update-alternatives --install /usr/bin/python python /usr/bin/python3.6 1
下载get-pip.py后直接运行即可。
可以看一下官方教程:Nvidia Nx 官方安装torch步骤
wget https://nvidia.box.com/shared/static/p57jwntv436lfrd78inwl7iml6p13fzh.whl -O torch-1.6.0-cp36-cp36m-linux_aarch64.whl
sudo apt-get install python3-pip libopenblas-base libopenmpi-dev
pip3 install Cython
pip3 install torch-1.6.0-cp36-cp36m-linux_aarch64.whl
sudo apt-get install libjpeg-dev zlib1g-dev libpython3-dev libavcodec-dev libavformat-dev libswscale-dev
git clone --branch v0.7.0 https://gitee.com/zero-one-game/vision torchvision # see below for version of torchvision to download
cd torchvision
export BUILD_VERSION=0.7.0 # where 0.x.0 is the torchvision version
python3 setup.py install --user
cd ../ # attempting to load torchvision from build dir will result in import error
pip install opencv-python
pip install opencv-python -i http://pypi.mirrors.ustc.edu.cn/simple/
sudo apt-get install python3-matplotlib
阿里云 http://mirrors.aliyun.com/pypi/simple/
豆瓣(douban) http://pypi.douban.com/simple/
清华大学 https://pypi.tuna.tsinghua.edu.cn/simple/
中国科学技术大学 http://pypi.mirrors.ustc.edu.cn/simple/
OPENBLAS_CORETYPE=ARMV8
OPENBLAS_CORETYPE=ARMV8
python ***.py
export OPENBLAS_CORETYPE=ARMV8
加入到~/.bashrc
python get-pip.py
pip3 install numpy torch-1.6.0-cp36-cp36m-linux_aarch64.whl
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。