简体   繁体   English

Nano Jetson Jetpack 4.6.1 无法安装正确的 h5py 版本?

[英]Nano Jetson Jetpack 4.6.1 can't install right h5py version?

I have a Nano Jetson and flashed it with the latest available Jetpack version from here: https://developer.nvidia.com/embedded/learn/get-started-jetson-nano-devkit which is 4.6.1.我有一个 Nano Jetson,并从这里用最新可用的 Jetpack 版本刷新它: https ://developer.nvidia.com/embedded/learn/get-started-jetson-nano-devkit,即 4.6.1。 Now when following this guide to install tensorflow: https://docs.nvidia.com/deeplearning/frameworks/install-tf-jetson-platform/index.html I checked the version of tensorflow I need here: https://docs.nvidia.com/deeplearning/frameworks/install-tf-jetson-platform-release-notes/tf-jetson-rel.html#tf-jetson-rel which is following command: sudo pip3 install --extra-index-url https://developer.download.nvidia.com/compute/redist/jp/v461 tensorflow==2.7.0+nv22.01 now when I run this command I get following error:现在,当按照本指南安装 tensorflow 时: https ://docs.nvidia.com/deeplearning/frameworks/install-tf-jetson-platform/index.html 我在这里检查了我需要的 tensorflow 版本: https://docs。 nvidia.com/deeplearning/frameworks/install-tf-jetson-platform-release-notes/tf-jetson-rel.html#tf-jetson-rel以下命令: sudo pip3 install --extra-index-url https://developer.download.nvidia.com/compute/redist/jp/v461 tensorflow==2.7.0+nv22.01现在,当我运行此命令时,出现以下错误:

ERROR: Could not find a version that satisfies the requirement h5py~=3.1.0 (from tensorflow) (from versions: 2.2.1, 2.3.0b1, 2.3.0, 2.3.1, 2.4.0b1, 2.4.0, 2.5.0, 2.6.0, 2.7.0rc2, 2.7.0, 2.7.1, 2.8.0rc1, 2.8.0, 2.9.0rc1, 2.9.0, 2.10.0, 3.0.0rc1, 3.0.0, 3.1.0)                                                           
ERROR: No matching distribution found for h5py~=3.1.0   

which doesn't even make sense, since 3.1.0 is in the list of available versions.这甚至没有意义,因为 3.1.0 在可用版本列表中。 When I try to manually install h5py 3.1.0 it fails a few times and keeps trying to install older versions after which it finally successfully installs h5py version 2.10.0, which is obviously too old for the version needed for the tensorflow version for my jetpack version.当我尝试手动安装 h5py 3.1.0 时,它失败了几次并继续尝试安装旧版本,之后它最终成功安装了 h5py 版本 2.10.0,这对于我的 jetpack 的 tensorflow 版本所需的版本来说显然太旧了版本。 How can I install tensorflow on my nano jetson with Jetpack version 4.6.1?如何使用 Jetpack 4.6.1 版在我的 nano jetson 上安装 tensorflow?

The right tutorial is not linked under the official page, but in a forum post: https://forums.developer.nvidia.com/t/official-tensorflow-for-jetson-nano/71770 , with this it works正确的教程未在官方页面下链接,但在论坛帖子中: https ://forums.developer.nvidia.com/t/official-tensorflow-for-jetson-nano/71770,它可以工作

$ sudo apt-get update
$ sudo apt-get install libhdf5-serial-dev hdf5-tools libhdf5-dev zlib1g-dev zip libjpeg8-dev liblapack-dev libblas-dev gfortran
$ sudo apt-get install python3-pip
$ sudo pip3 install -U pip testresources setuptools
$ sudo ln -s /usr/include/locale.h /usr/include/xlocale.h
$ sudo pip3 install -U numpy==1.19.4 future mock keras_preprocessing keras_applications gast==0.2.1 protobuf pybind11 cython pkgconfig packaging
$ sudo pip3 install --extra-index-url https://developer.download.nvidia.com/compute/redist/jp/v461 tensorflow

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM