Jetson AGX Xavier踩坑记录

2023-11-01

1. 联网后,升级所有安装包,并且更新了一下系统

 sudo  apt-get update

2. 安装中文输入法

sudo  apt-get install fcitx-googlepinyin

3. 安装nano文本编辑器,比较喜欢这个文本编辑器(不需要学啥命令)。本来喜欢用gedit,但是上一次在Jetson的linux中,sudo gedit的界面刷新有问题,不明白为什么。不过这次系统就没有这个毛病了

sudo  apt-get install nano

4. 安装pip3

https://pypi.org/搜索pip,我当前最新版本是19.2.2

点击installation的链接后,官方告诉用下面命令安装:

$ curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py

可是系统默认没有curl,于是先安装curl

$ sudo apt-get install curl

5. 在自己的home创建一个dowload文件夹,执行curl那条命令,下载了一个叫做get-pip.py的文件

6. 按照官方的要求,执行sudo python3 get-pip.py

$ sudo python3 get-pip.py
WARNING: The directory '/home/cpt/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
WARNING: The directory '/home/cpt/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Collecting pip
  Downloading https://files.pythonhosted.org/packages/8d/07/f7d7ced2f97ca3098c16565efbe6b15fafcba53e8d9bdb431e09140514b0/pip-19.2.2-py2.py3-none-any.whl (1.4MB)
     |████████████████████████████████| 1.4MB 333kB/s 
Collecting setuptools
  Downloading https://files.pythonhosted.org/packages/ec/51/f45cea425fd5cb0b0380f5b0f048ebc1da5b417e48d304838c02d6288a1e/setuptools-41.0.1-py2.py3-none-any.whl (575kB)
     |████████████████████████████████| 583kB 8.6MB/s 
Collecting wheel
  Downloading https://files.pythonhosted.org/packages/bb/10/44230dd6bf3563b8f227dbf344c908d412ad2ff48066476672f3a72e174e/wheel-0.33.4-py2.py3-none-any.whl
ERROR: launchpadlib 1.10.6 requires testresources, which is not installed.
Installing collected packages: pip, setuptools, wheel
Successfully installed pip-19.2.2 setuptools-41.0.1 wheel-0.33.4
cpt@cie-jetson:~/download$ 

虽然中间有一个红色错误行,但是还是安装成功了,可以在终端窗口输入一个pip3试一下就知道了

7. 安装Opencv

Jetpack中已经自带了opencv,但是在python3中import的时候并不能成功

$ python3
Python 3.6.8 (default, Jan 14 2019, 11:02:34) 
[GCC 8.0.1 20180414 (experimental) [trunk revision 259383]] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import cv2
ImportError: numpy.core.multiarray failed to import
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: numpy.core.multiarray failed to import
>>> 

看来是需要安装Numpy。在安装Numpy之前,我们先看看我们的Opencv的版本吧(失败方法):

$ sudo pip3 show opencv-python
$ sudo pip3 show opencv-contrib-python 
$ sudo pip show opencv-python

经过上面3个命令,都无法获取opencv的版本。。。

网上搜一下怎么获取,得知可以在python中看(注意此处用的是python2,因为上面我们已经试过了,python3中无法import cv2)

$ python
Python 2.7.15+ (default, Nov 27 2018, 23:36:35) 
[GCC 7.3.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import cv2
>>> print cv2.__version__
3.3.1
>>> 

通过官方网站点击到这个页面:https://docs.opencv.org/4.1.1/da/df6/tutorial_py_table_of_contents_setup.html

按照里面的指导安装Opencv,两种方式

  • Install from pre-built binaries available in Ubuntu repositories
  • Compile from the source. In this section, we will see both.

作为小白,我喜欢pre-built binaries方式。(官方说用sudo apt-get install python-opencv安装,但是我的系统中要在Python3中使用,所以稍微改一下,否则将会被安装在Python 2环境中了。)

$ sudo apt-get install python3-opencv

官方说Opencv依赖Numpy:

Another important thing is the additional libraries required. OpenCV-Python requires only Numpy (in addition to other dependencies, which we will see later). But in this tutorials, we also use Matplotlib for some easy and nice plotting purposes (which I feel much better compared to OpenCV). Matplotlib is optional, but highly recommended. Similarly we will also see IPython, an Interactive Python Terminal, which is also highly recommended.

不过我们不需要再安装了,因为在装Opencv的时候numpy就被自动安装了(import的时候没有错误提示,说明已经安装了)

$ python3
Python 3.6.8 (default, Jan 14 2019, 11:02:34) 
[GCC 8.0.1 20180414 (experimental) [trunk revision 259383]] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import cv2
>>> import numpy
>>> print (cv2.__version__)
3.2.0
>>> print (numpy.__version__)
1.13.3
>>> 

版本貌似不高,先不升级。

再尝试用pip3查看版本:

$ sudo pip3 show numpy
Name: numpy
Version: 1.13.3
Summary: NumPy: array processing for numbers, strings, records, and objects.
Home-page: http://www.numpy.org
Author: NumPy Developers
Author-email: numpy-discussion@python.org
License: BSD
Location: /usr/lib/python3/dist-packages
Requires: 
Required-by: uff
$ sudo pip3 show cv2
$ sudo pip3 show python3-opencv
$ 

发现pip3还是无法获取opencv的版本。或许我的指令有误吧,希望高手指点一下。

8. 安装Tensorflow

打开nvidia的官方网站nvidia.cn,拉到底下:

选择开发者--下载,最后来到这个URL页面

https://developer.nvidia.com/embedded/downloads

搜索里面搜所tensorflow

按照最新版本的提示,安装tensorflow

(1)安装依赖库

$ sudo apt-get install libhdf5-serial-dev hdf5-tools libhdf5-dev zlib1g-dev zip libjpeg8-dev

(2)升级pip3

$ sudo apt-get install python3-pip
$ sudo pip3 install -U pip

(3)继续安装升级依赖库

$ sudo pip3 install -U numpy grpcio absl-py py-cpuinfo psutil portpicker six mock requests gast h5py astor termcolor protobuf keras-applications keras-preprocessing wrapt google-pasta setuptools testresources

  (4) 在官方主页下载tensorflow的whl文件(这个文件可以用Pip3进行安装)

(5) 安装tensorflow,此处注意,install后面跟的是你下载来的文件在本地的实际路径。

cpt@cie-jetson: sudo pip3 install ~/download/tensorflow_gpu-1.14.0+nv19.7-cp36-cp36m-linux_aarch64.whl

  (6) 检查安装是否成功(别看那么多信息,没关系,不影响咱们使用):

$ python3
Python 3.6.8 (default, Jan 14 2019, 11:02:34) 
[GCC 8.0.1 20180414 (experimental) [trunk revision 259383]] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import tensorflow as tf
2019-08-13 11:14:24.951197: I tensorflow/stream_executor/platform/default/dso_loader.cc:42] Successfully opened dynamic library libcudart.so.10.0
/usr/local/lib/python3.6/dist-packages/tensorflow/python/framework/dtypes.py:516: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
  _np_qint8 = np.dtype([("qint8", np.int8, 1)])
/usr/local/lib/python3.6/dist-packages/tensorflow/python/framework/dtypes.py:517: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
  _np_quint8 = np.dtype([("quint8", np.uint8, 1)])
/usr/local/lib/python3.6/dist-packages/tensorflow/python/framework/dtypes.py:518: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
  _np_qint16 = np.dtype([("qint16", np.int16, 1)])
/usr/local/lib/python3.6/dist-packages/tensorflow/python/framework/dtypes.py:519: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
  _np_quint16 = np.dtype([("quint16", np.uint16, 1)])
/usr/local/lib/python3.6/dist-packages/tensorflow/python/framework/dtypes.py:520: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
  _np_qint32 = np.dtype([("qint32", np.int32, 1)])
/usr/local/lib/python3.6/dist-packages/tensorflow/python/framework/dtypes.py:525: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
  np_resource = np.dtype([("resource", np.ubyte, 1)])
/usr/local/lib/python3.6/dist-packages/tensorboard/compat/tensorflow_stub/dtypes.py:541: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
  _np_qint8 = np.dtype([("qint8", np.int8, 1)])
/usr/local/lib/python3.6/dist-packages/tensorboard/compat/tensorflow_stub/dtypes.py:542: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
  _np_quint8 = np.dtype([("quint8", np.uint8, 1)])
/usr/local/lib/python3.6/dist-packages/tensorboard/compat/tensorflow_stub/dtypes.py:543: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
  _np_qint16 = np.dtype([("qint16", np.int16, 1)])
/usr/local/lib/python3.6/dist-packages/tensorboard/compat/tensorflow_stub/dtypes.py:544: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
  _np_quint16 = np.dtype([("quint16", np.uint16, 1)])
/usr/local/lib/python3.6/dist-packages/tensorboard/compat/tensorflow_stub/dtypes.py:545: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
  _np_qint32 = np.dtype([("qint32", np.int32, 1)])
/usr/local/lib/python3.6/dist-packages/tensorboard/compat/tensorflow_stub/dtypes.py:550: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
  np_resource = np.dtype([("resource", np.ubyte, 1)])
>>> print (tf.__version__)
1.14.0
>>> 

至此,开发环境搭建完成。

 

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

Jetson AGX Xavier踩坑记录 的相关文章

  • NVIDIA JETSON XAVIER NX TX2 NANO 比较及与显卡算力对比

    以上数据来源 xff1a CUDA GPU分数 xff0c GPU计算能力 Compute Capability 主要指GPU能够支持的计算类型的版本 xff0c 可以作为评估算力的主要参考 详细的各个版本的不同请查看CUDA Comput
  • Jetson Xavier/XavierNX/TX2 CANFD 配置使用

    目录 TX2 Xavier NX Xavier CAN特性TX2 Xavier NX Xavier 载板引出位置CAN收发器NVIDIA CAN DriverXavier CAN 引脚配置Jetson CAN 设置设置开机运行查看连接状态C
  • Jetson nano/nx通过网线连接电脑实现远程控制

    Jetson nano nx通过网线连接电脑实现远程控制 摘要1 nano nx桌面共享设置2 安装dconf editor解除加密3 自启VNC server4 网络共享5 获取IP地址6 安装PuTTy7 安装VNC Viewwer8
  • Jetson Nano( 五) TensorRT yolov4 yolov4-tiny yolov5 实测

    TensorRT yolov4 yolov4 tiny yolov5 长期更新 文章目录 TensorRT yolov4 yolov4 tiny yolov5 长期更新软硬件环境参考大佬项目简要流程注意要点操作流程记录遇坑推理速度记录 软硬
  • 研扬Jetson NX镜像备份和恢复

    0 环境依赖 研扬RC S ARES 200AI NX CSC00型号Jetpack4 6 0 1 如何进入Recovery模式 1 先按住Recovery键再插电源上电 xff0c 此间一直按住Recovery键2 3秒之后松开 2 将U
  • Ubuntu 18.04 (Jetson Nano 4G/TX2)配置 CCM-SLAM

    文章目录 1 安装ROS2 安装OpenCV33 设置虚拟内存4 安装CCM SLAM 记录了安装CCM SLAM的详细过程以及踩过的坑 安装环境 xff1a Jetson Nano 4G Ubuntu 18 04 1 安装ROS 1 1更
  • 英伟达JETSON XAVIER NX使用小记

    1 输入法问题 安装谷歌拼音 xff08 支持ARM64位系统 xff09 系统设置 gt 语言支持 gt 键盘输入法系统 gt 选择 fcitx gt 关闭 在终端中进行安装和部分卸载工作 xff1a sudo apt get insta
  • 记录一下jetson xaiver 连接51串口

    记录一下jetson xaiver 连接51串口 引脚说明 jetson方面 xff1a UART1 TX pin8 UART1 RX pin10 挂载节点 xff1a dev ttyTHS051方面 xff1a UART1 TX GPIO
  • NVIDIA Jetson Xavier NX 串口通讯(发送YOLO检测结果)(记录)

    目录 NVIDIA Jetson Xavier NX串口cutecom助手测试发送YOLO检测结果 开始之前声明 xff1a 本文在NVIDIA Jetson Xavier NX上跑YOLOv4模型 xff0c 配合ZED相机实时检测 xf
  • NVIDIA Jetson Xavier NX 控制GPIO

    NVIDIA Jetson Xavier NX 控制GPIO 文章目录 NVIDIA Jetson Xavier NX 控制GPIO前言一 简介二 代码实例1 gpio h2 gpio cpp 三 拓展 前言 在linux系统中以文件io的
  • Jetson xavier Nx & jetson nano 上手 + 刷机

    本教程基于Jetson xavier Nx开发套件 本教程参考Nvidia官方刷机教程 制作启动盘 在官方下载中心下载SD卡镜像并解压 下载SD Memory Card Formatter 需要划到页面最下方 xff0c 点击 Accept
  • NVIDIA Jetson Xavier NX部署VINS-fusion-GPU

    组内大佬师兄今天抽出时间总结了一篇博客 xff0c 主要内容是 xff1a 把在阿木P450无人机上 xff0c 对自带的NVIDIA Jetson Xavier NX边缘计算机部署VINS fusion GPU教程 xff0c 并进行实验
  • NVIDIA Jetson Xavier NX部署VINS-fusion-GPU

    NVIDIA Jetson Xavier NX部署VINS fusion GPU 一 环境配置 xff08 Ubuntu 18 04 xff09 1 Cuda 10 2的安装 span class token function sudo s
  • Jetson TX2 入门 ——介绍

    暑假留校 xff0c 老师给我们拿了两块开发板 xff0c 一个是英伟达的Jetson TX2 xff0c 一个是up squared xff0c 让我们先熟悉开发板 xff0c 为明年的比赛做准备 这两个板子是前几届学长做比赛用过的 自己
  • Jetson tx2(JetPack 4.4)配置pytorch环境

    下载pytorch 下载pytorch1 7 xff1a 我的系统是JetPack4 4 xff0c 要求pytorch gt 61 1 7 安装pytorch span class token function sudo span spa
  • NVIDIA Jetson TX2 上手指南

    文章目录 一个性能强大的边缘设备我和 NVIDIA Jetson TX2 的初体验Fresh Your TX2为什么在第一步取消Host Machine可能遇到的问题 用上最好的性能 xff0c 小风扇跳舞吧 xff5e xff5e 运行一
  • 在Jetson Nano上实现单目相机 apritag_ros识别

    一 xff0c apritag ros安装 最开始采用克隆源码编译的方式进行安装 xff0c 后来在Jetson nano上有opencv4与opencv3的依赖问题 xff0c 后来索性直接采用二进制安装 xff1a sudo apt g
  • jetson镜像克隆到固态再扩容简单方法

    jetson克隆方法很多 xff0c 我是自己把之前的sd镜像克隆做成img镜像了 然后烧写后之前是64g的后续烧写都是64g的不能把新的储存设备占满 这里有一个扩容和移植到固态的方法 主要分三步 xff1a 镜像克隆和烧录到sd卡使用固态
  • 解决:Jetson系列python3 import 报错 “Illegal instruction core dumped “

    解决 Jetson系列python3 import 报错 Illegal instruction cpre dumped 解决方法 解决方法 编辑环境变量 sudo gedit bashrc 在最后一行添加 export OPENBLAS
  • jetson nano 安装pytorch装不上

    可以尝试 先把依赖装上在安装whl文件 安装依赖的指令如下 sudo apt get install libopenblas base libopenmpi dev

随机推荐

  • 基础指针【指针的基本使用方法和注意事项】

    基础指针目录 前言 指针 指针是什么 指针的大小 指针的定义和赋值 指针的使用 传值调用和传址调用 传值调用 传址调用 指针的弊端 野指针 使用指针的注意事项 前言 指针 是我们在学习C语言中的一个重难点 关乎到我们学习C语言的深度和理解
  • module.exports、exports、export default、export、require、import

    在es5中 用 module exports 和 exports 导出模块 用 require 导入模块 在es6中 新增 export default 和 export 导出模块 用 import 导入模块 一般的 module expo
  • java 设置不缓存,java – 禁用通过外部属性的spring方法缓存

    我使用ehcache和注释驱动配置配置了 spring方法缓存 但是 我希望能够从我们在应用程序中使用的配置文件中禁用它 我的第一个想法是如果禁用方法缓存 则调用net sf ehcache CacheManager CacheManage
  • Vue3中的hook

    一 hook的基本使用 Vue3中的hook通常被称为Composition API 是Vue js框架中的一个重要特性 它们的本质是一些可以在组件内部使用的函数 这些函数能够让你在不影响组件逻辑的情况下 增强和扩展组件的功能 Hook的主
  • VS2015:当前不会命中断点,显示当前不会命中断点 没有与此行关联的可执行代码

    使用VS在Release模式下打断点进行调试 有时候不会命中断点 显示信息如下 当前不会命中断点 显示当前不会命中断点 没有与此行关联的可执行代码 这是因为Release模式下 编译器进行编译优化时 忽略掉了这个断点 为此需要 releas
  • ERROR: You must give at least one requirement to install (see "pip help install")

    使用pip install 命令时遇到You must give at least one requirement to install see pip help install 原因是install 后面没有参数 也就是说没有给想要安装的
  • 蓝牙AOA高精度定位

    01 蓝牙AOA定位技术原理 2019 年初 蓝牙技大联盟宣布蓝牙 5 1 引入了新的 寻向 功能 这个功能可检测蓝牙信号的方向 将大幅提高蓝牙定位的精确度 提供更好的位置服务 结束了以往通过 RSSI 信号强度的方式做低精度指纹定位的历史
  • qt程序设置同时只能运行一个,避免重复打开

    qt程序设置同时只能运行一个 避免重复打开 1 qt程序设置同时只能运行一个 避免重复打开 2 Qt 桌面软件防止重新启动 一 创建互斥量 二 使用QLockFile 创建锁定文件 通过能否锁定来判断是否已经有程序启动 三 使用 系统信号量
  • too few arguments

    改为 解决
  • C#,《小白学程序》第二十七课:大数四则运算之“运算符重载”的算法及源程序

    1 文本格式 using System using System Text using System Collections using System Collections Generic
  • python 默认参数问题

    一个函数参数的默认值 仅仅在该函数定义的时候 被赋值一次 首先来看问题 gt gt gt def add end L L append END return L gt gt gt gt gt gt t add end gt gt gt gt
  • UE4烘焙

    前言 UE4引擎通过editor来创建和管理uasset 但是当游戏发布到不同的平台时需要根据平台转换为不同的格式 而这样的转换过程就叫作烘焙 分为三个步骤 加载包至内存 为包中的每个对象生成目标平台特定数据 Derived Data 把含
  • GY906 MLX90614 非接触式 红外测温传感器 LabVIEW i2c总线数据读取

    GY906使用的红外测温芯片为MLX90614 使用LabVIEW读取i2c总线数据时 需要知道传感器的地址 出厂默认为0x5A 传感器地址支持自己修改 存放在芯片EEPROM的0x0E位置 可以通过访问EEPROM的0x0E单元来获得传感
  • vue-waterfall-easy 的使用

    安装 npm install vue waterfall easy save dev 引用 import vueWaterfallEasy from vue waterfall easy html
  • FindBugs规则整理

    FindBugs是基于Bug Patterns概念 查找javabytecode class文件 中的潜在bug 主要检查bytecode中的bug patterns 如NullPoint空指针检查 没有合理关闭资源 字符串相同判断错 而不
  • 极光笔记

    随着硬件 软件 网络等不断发展 完善 互联网已经渗透到了日常生活中的方方面面 在直接赋能原有行业服务的同时也带来了很多新的服务模式 给人们日常生活带来了极大便利 例如 外卖 快递 跑腿等相关业务更是在我们日常生活中随处可见 业务终端经常处在
  • 8月总共面试31次,我人麻了....

    3年测试经验原来什么都不是 只是给你的简历上画了一笔 一直觉得经验多 无论在哪都能找到满意的工作 但是现实却是给我打了一个大巴掌 事后也不会给糖的那种 先说一下自己的个人情况 普通二本计算机专业毕业 懂python 会写脚本 会seleni
  • 各种距离~~~

    def minkowski distance vec1 vec2 p 3 闵氏距离 当p 1时 就是曼哈顿距离 当p 2时 就是欧氏距离 当p 时 就是切比雪夫距离 param vec1 param vec2 param p return
  • 记录嵌入式面试的流程

    选择嵌入式行业 意味着初期进行很大的付出 希望找到一份满意的工作也是理所当然的 最近正好离开原公司 面试了几家企业 基本参加的都给了offer 这里总结下面试遇到的事情 也是一种积累 我也经历过刚踏入嵌入式行业啥都不会的时候 那时面试都是以
  • Jetson AGX Xavier踩坑记录

    1 联网后 升级所有安装包 并且更新了一下系统 sudo apt get update 2 安装中文输入法 sudo apt get install fcitx googlepinyin 3 安装nano文本编辑器 比较喜欢这个文本编辑器