问题:Doing a pip3 install tensorflow-addons from an Nvidia TX2 produce No matching distribution found for tensorflow-addons. My current TensorFlow is 2.8 from Jetpack 5.0.1

根据 Jetson AGX/TX2/Nano - Build release from pip3 install · Issue #1982 · tensorflow/addons · GitHub 的说法,需要自行编译tensorflow-addons ,

1. bazel 也需要编译安装才能安装上 参考连接 在jetson nano上安装bazel_帅的发光发亮的博客-CSDN博客

2.按官网方式编译 GitHub - tensorflow/addons: Useful extra functionality for TensorFlow 2.x maintained by SIG-addons

git clone https://github.com/tensorflow/addons.git
cd addonsexport TF_NEED_CUDA="1"# Set these if the below defaults are different on your system
export TF_CUDA_VERSION="11"
export TF_CUDNN_VERSION="8"
export CUDA_TOOLKIT_PATH="/usr/local/cuda"
export CUDNN_INSTALL_PATH="/usr/lib/aarch64-linux-gnu"# This script links project with TensorFlow dependency
python3 ./configure.pybazel build build_pip_pkg
bazel-bin/build_pip_pkg artifactspip install artifacts/tensorflow_addons-*.whl

报错:FileNotFoundError: [Errno 2] No such file or directory: '/dt9/usr/bin/gcc'

Unable to build from source with GPU support · Issue #2712 · tensorflow/addons · GitHub

按这里所说:

sudo mkdir -p /dt9/usr
sudo ln -s /usr/bin /dt9/usr/bin

继续编译,然后又报错:

/home/yxhy01/env-tool/tensorflow/addons/tensorflow_addons/custom_ops/layers/BUILD:7:18: Compiling tensorflow_addons/custom_ops/layers/cc/ops/correlation_cost_op.cc failed: undeclared inclusion(s) in rule '//tensorflow_addons/custom_ops/layers:_correlation_cost_ops.so':
this rule is missing dependency declarations for the following files included by 'tensorflow_addons/custom_ops/layers/cc/ops/correlation_cost_op.cc':
  '/usr/lib/gcc/aarch64-linux-gnu/9/include/stddef.h'
  '/usr/lib/gcc/aarch64-linux-gnu/9/include/stdarg.h'
  '/usr/lib/gcc/aarch64-linux-gnu/9/include/stdint.h'
  '/usr/lib/gcc/aarch64-linux-gnu/9/include/limits.h'
  '/usr/lib/gcc/aarch64-linux-gnu/9/include/syslimits.h'
  '/usr/lib/gcc/aarch64-linux-gnu/9/include/arm_neon.h'
  '/usr/lib/gcc/aarch64-linux-gnu/9/include/arm_fp16.h'
Target //:build_pip_pkg failed to build
Use --verbose_failures to see the command lines of failed build steps.

解决办法:this rule is missing dependency declarations for the following fles.._阳阳鸭的博客-CSDN博客

清理bazel的缓存

rm -rf ~/.cache/bazel/

然后重新编译,过了!!

最后执行两步就完了:

bazel-bin/build_pip_pkg artifactspip install artifacts/tensorflow_addons-*.whl

jetson xiaver NX 安装tensorflow object detection api 遇到的tensorflow-addons 不能安装问题相关推荐

  1. Ubuntu 16.04 安装Tensorflow Object Detection API (一)

    1.安装Tensorflow 请参考官方说明及其它博客安装tensorflow,要使用Tensorflow Object Detction API,tensorflow版本需1.4及以后版本. 我的系 ...

  2. Tensorflow object detection API训练自己的目标检测模型 详细配置教程 (一)

    Tensorflow object detection API 简单介绍Tensorflow object detection API: 这个API是基于tensorflow构造的开源框架,易于构建. ...

  3. 如何在windows系统上安装Tensorflow Object Detection API?

    前言 都说Linux是最适合程序员使用的操作系统,这话还真不假. 之前一直在云服务器上跑代码,近期接手了师兄的台式机(GTX 1050),虽然配置很渣,但想在本地玩玩看,于是乎先安装一波Tensorf ...

  4. 使用tensorflow object detection API 训练自己的目标检测模型 (二)labelImg的安装配置过程

    上一篇博客介绍了goggle的tensorflow object detection API 的配置和使用, 这次介绍一下如何用这个API训练一个私人定制的目标检测模型. 第一步:准备自己的数据集.比 ...

  5. TensorFlow学习——Tensorflow Object Detection API(1.安装篇)

    2017 年 6 月, Google 公司开放了 TensorFlow Object Detection API . 这 个项目使用 TensorFlow 实现了大多数深度学习目标检测框架,真中就包括 ...

  6. w10的 Google Tensorflow Object Detection API安装

    欢迎关注WX公众号:[程序员管小亮] 近期学习<21个项目玩转深度学习:基于TensorFlow的实践详解>时遇到Google Tensorflow Object Detection AP ...

  7. 使用Tensorflow Object Detection API进行集装箱识别并对集装箱号进行OCR识别

    使用Tensorflow Object Detection API进行集装箱识别并对集装箱号进行OCR识别 两年多之前我在"ex公司"的时候,有一个明确的项目需求是集装箱识别并计数 ...

  8. 使用Tensorflow Object Detection API对集装箱号进行OCR识别

    玄念 两年多之前我在"ex公司"的时候,有一个明确的项目需求是集装箱识别并计数,然后通过OCR识别出之前计数的每一个集装箱号,与其余业务系统的数据进行交换,以实现特定的整体需求.当 ...

  9. Tensorflow object detection API 搭建物体识别模型

    ----------------------------------------------------先把别人博客教程跑通-------------------------------------- ...

  10. ubunu16.04 TensorFlow object detection API 应用配置

    TensorFlow object detection API应用–配置 主要参考 : https://github.com/tensorflow/models/blob/master/researc ...

最新文章

  1. 几种开源的TCP/IP协议栈分析
  2. 10.2 梯度下降-机器学习笔记-斯坦福吴恩达教授
  3. storm metric的使用说明
  4. 程序员技术练级攻略(转载)
  5. 在哪里可以找水系图_虹吸雨水排水系统对比传统重力排水,好在哪里?
  6. 2020江苏计算机二级考试官网,2020年秋季江苏省计算机等级考试报名通知
  7. 有源光缆AOC在40G网络布线中备受欢迎的主要原因
  8. 抓包工具Stream之接口调试和加密解码(二)
  9. 机器学习和ML.NET简介-第1部分
  10. 网络安全哪个培训班比较好?挑战年薪百万的技术型人才
  11. freeimage.dll
  12. idea插件开发可能出现的问题
  13. android电话记录仪,零费用变身记录仪 安卓手机探索改造
  14. PCIE标准共享,以及其机械尺寸图
  15. CC2530基础实验二:电源管理与睡眠定时器
  16. 免费赠品发布:Wintry Blue Wallpaper
  17. 局域网 FTP建立,搭建一个简易的局域网服务器
  18. Windows Hook案例分析与技术探索
  19. CA、公钥、私钥的基本概念
  20. 现代 C++ 编译时 结构体字段反射

热门文章

  1. 曲线积分与曲面积分总结_高等数学课程内容、知识点总结与典型题
  2. Android搜索控件SearchView的用法
  3. Shader学习七,UnityCG.cginc
  4. 如何利用训练好的神经网络进行预测
  5. 无线地磁传感器可以产生哪些社会效益
  6. 【解决方案】城市道路如何管控渣土车?EasyCVR助力搭建渣土车运输联网监控系统
  7. linux安装sqlserver
  8. ORA-01153处理方法
  9. 数据结构——折半查找法
  10. 大数据学习笔记1.3 Linux目录操作