Jetson nano 环境配置踩坑记录

  • 问题1: Jetson nano 无法安装matplotlib3.3.4
    常规安装会出现如下错误:在这里插入图片描述
  • 解决方法:
pip3 install -r requirements.txt  -i https://pypi.tuna.tsinghua.edu.cn/simple
  • 问题2:torch 版本无法安装
    nano nvida官网有发布对应型号的torch版本,直接下载安装
    Jetson nano 环境配置踩坑记录_第1张图片

  • 解决方法:

下载链接:https://forums.developer.nvidia.com/t/pytorch-for-jetson/72048
安装torch:
wget https://nvidia.box.com/shared/static/p57jwntv436lfrd78inwl7iml6p13fzh.whl -O torch-1.8.0-cp36-cp36m-linux_aarch64.whl
sudo apt-get install python3-pip libopenblas-base libopenmpi-dev libomp-dev
pip3 install Cython
pip3 install numpy torch-1.8.0-cp36-cp36m-linux_aarch64.whl

#安装torchvison:
$ sudo apt-get install libjpeg-dev zlib1g-dev libpython3-dev libavcodec-dev libavformat-dev libswscale-dev
$ git clone --branch  https://github.com/pytorch/vision torchvision   # see below for version of torchvision to download
$ cd torchvision
$ export BUILD_VERSION=0.x.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 'pillow<7' # always needed for Python 2.7, not needed torchvision v0.5.0+ with Python 3.6

你可能感兴趣的:(深度学习,python,ubuntu,nano,nvidia,python)