How to install TensorFlow && keras with Ubuntu 20.04.3 LTS

设备为vim3 pro, 下载的emmc固件,Ubuntu 20.04.3 LTS镜像。 python版本为3.8.10

用git下载了npu_sdk
git clone --recursive GitHub - khadas/aml_npu_sdk
npu_sdk子目录 acuity-toolkit 下的 requirements.txt,. 安装依赖库tensorflow的时候报错,
具体错误如下:
ERROR: Could not find a version that satisfies the requirement tensorflow (from versions: none)
ERROR: No matching distribution found for tensorflow

后来修改python版本为3.6.5,然后下载tensorflow的whl格式也安装失败,具体信息提示:
ERROR: tensorflow-2.0.0-cp36-cp36m-manylinux2010_x86_64.whl is not a supported wheel on this platform.
咨询一下,设备要如何正确安装tensorflow, 同时npu使用对tensorflow版本是否有最低要求?

@googleearth SDK应该在你的主机电脑上运行使用,不是在板子上。只有应用是在板子上运行以及编译。SDK是x86_64环境的。

您的意思是 sdk在主机电脑上将模型转换为板子支持的npu类型。
另一个问题,我现在在板子上装不了tensorflow环境。
ERROR: Could not find a version that satisfies the requirement tensorflow (from versions: none)
ERROR: No matching distribution found for tensorflow

@googleearth 是的,没错,转换SDK是在你的主机电脑上运行的。

Tensorflow是SDK转换要用,因此也是在主机上安装,不需要在板子上安装。

那应用里使用的tensorflow, 部署到板子上。 没有tensorflow库也可以运行?

@googleearth 应用里面并不使用Tensorflow,NPU都有自己的运行库。这个库已经预装在固件里面了。

那单纯的部署原生的tensorflow应用的解决方案是什么呢?

@googleearth 没有解决方案,无法部署。没有能在我们SBC上安装的版本。并且这也将无法使用NPU。