简体   繁体   English

在 docker 容器中安装 tensorflow

[英]Installing tensorflow inside a docker container

I am trying to install tensorflow inside my docker container.我正在尝试在我的 docker 容器中安装 tensorflow。 However, having tensorflow in my requirements.txt or even doing a RUN pip install tensorflow gives me the error:但是,在我的 requirements.txt 中有 tensorflow 甚至执行RUN pip install tensorflow给我错误:

ERROR: Could not find a version that satisfies the requirement tensorflow (from versions: none)
ERROR: No matching distribution found for tensorflow

I can't find how to access tensforflow inside my docker container.我找不到如何在我的 docker 容器中访问 tensforflow。 I tried to use the tensorflow docker container inside my container by adding the following to my Dockerfile我尝试通过将以下内容添加到我的 Dockerfile 中来使用容器内的 tensorflow docker 容器

RUN docker pull tensorflow/tensorflow
RUN docker run -it tensorflow/tensorflow

but had no luck :(但没有运气:(

That's a terminal command.那是一个终端命令。 Run this in your terminal: docker run -it tensorflow/tensorflow在终端中docker run -it tensorflow/tensorflowdocker run -it tensorflow/tensorflow

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

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