当前位置:   article > 正文

NVIDIA Jetson Xavier NX刷机后首次使用记录及 搭建部署yolo v5 环境(miniforge管理环境),已实测成功。_英伟达nx怎么装yolov5运行环境

英伟达nx怎么装yolov5运行环境

 1、刷机后首次使用(Ubuntu20.04  JetPack 5.0 )

1.1 cuda 环境变量(一般安装好会自动带有,可以在检查一下)

sudo gedit ~/.bashrc
  1. export PATH=/usr/local/cuda/bin:$PATH
  2. export LD_LIBRARY_PATH=/usr/local/cuda/lib64:$LD_LIBRARY_PATH
  3. export CUDA_HOME=/usr/local/cuda

接着在命令行内刷新环境变量: 

source ~/.bashrc

输入nvcc -V检查版本信息。

1.2 换源

先将原先的源拷贝一份(ubuntu20.04  arm架构 清华源)

  1. sudo cp /etc/apt/sources.list /etc/apt/sources.list.backup
  2. sudo gedit /etc/apt/sources.list
  1. # 默认注释了源码镜像以提高 apt update 速度,如有需要可自行取消注释
  2. deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ focal main restricted universe multiverse
  3. # deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ focal main restricted universe multiverse
  4. deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ focal-updates main restricted universe multiverse
  5. # deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ focal-updates main restricted universe multiverse
  6. deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ focal-backports main restricted universe multiverse
  7. # deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ focal-backports main restricted universe multiverse
  8. deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ focal-security main restricted universe multiverse
  9. # deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ focal-security main restricted universe multiverse
  10. # 预发布软件源,不建议启用
  11. # deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ focal-proposed main restricted universe multiverse
  12. # deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ focal-proposed main restricted universe multiverse
sudo apt-get update

1.3 配置pip

python

  1. #查看python版本是否最新
  2. sudo apt-get install python3-pip python3-dev
  3. python3 -m pip install --upgrade pip
  4. #
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/IT小白/article/detail/578445
推荐阅读
相关标签
  

闽ICP备14008679号