用树莓皮3在Docker上安装Tensorflow

2024-09-29 08:27:36 发布

您现在位置:Python中文网/ 问答频道 /正文

我想在一个Docker容器上安装Tensorflow v1.12.0,该容器运行在Raspberry Pi3Bplus上,使用来自python:3.6-slim。 我知道我需要考虑到我使用的是armv7l架构。在

到目前为止,我尝试使用pip/pip3进行安装,有无版本信息,有无使用要求.txt. 这样,所有其他需要的包都可以用pip安装。 但我得到了一个错误:

Step 5/13 : RUN pip install tensorflow==1.12.0
             ---> Running in d0ecb01c7fbc
            Collecting tensorflow==1.12.0
              Could not find a version that satisfies the requirement tensorflow==1.12.0 (from versions: )
            No matching distribution found for tensorflow==1.12.0
            The command '/bin/bash -c pip install tensorflow==1.12.0' returned a non-zero code: 1

然后我试着用armv7l miniconda安装。但是看起来Tensorflow包不支持miniconda版本。在

最后,我尝试从这个repo:https://github.com/lhelontra/tensorflow-on-arm/releases中为arm安装一个预编译的轮子。 像这样:RUN pip install https://github.com/lhelontra/tensorflow-on-arm/releases/download/v1.12.0/tensorflow-1.12.0-cp35-none-linux_armv7l.whl 在这里我换了python:3.5-slim哪个开始很好,但似乎停在某处,结果导致管道破裂(我正在做这个遥控器)。在

我不知道我下一步可以尝试什么,也没有在网上找到其他任何东西。在


Tags: installpiprunhttpsgithubcomontensorflow