前提・実現したいこと
Dockerfileからtensorflowをインストールしたい。
PC: M1 Macbook air
Docker: 20.10.7
参考:インストール手順
https://google.github.io/mediapipe/getting_started/install.html#installing-using-docker
発生している問題・エラーメッセージ
エラーメッセージ Could not find a version that satisfies the requirement tensorflow==1.14.0 (from versions: ) No matching distribution found for tensorflow==1.14.0 The command '/bin/sh -c pip3 install tensorflow==1.14.0' returned a non-zero code: 1
該当のソースコード
Dockerfile
1# Copyright 2019 The MediaPipe Authors. 2# 3# Licensed under the Apache License, Version 2.0 (the "License"); 4# you may not use this file except in compliance with the License. 5# You may obtain a copy of the License at 6# 7# http://www.apache.org/licenses/LICENSE-2.0 8# 9# Unless required by applicable law or agreed to in writing, software 10# distributed under the License is distributed on an "AS IS" BASIS, 11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12# See the License for the specific language governing permissions and 13# limitations under the License. 14 15FROM ubuntu:18.04 16 17MAINTAINER <mediapipe@google.com> 18 19WORKDIR /io 20WORKDIR /mediapipe 21 22ENV DEBIAN_FRONTEND=noninteractive 23 24RUN apt-get update && apt-get install -y --no-install-recommends \ 25 build-essential \ 26 gcc-8 g++-8 \ 27 ca-certificates \ 28 curl \ 29 ffmpeg \ 30 git \ 31 wget \ 32 unzip \ 33 python3-dev \ 34 python3-opencv \ 35 python3-pip \ 36 libopencv-core-dev \ 37 libopencv-highgui-dev \ 38 libopencv-imgproc-dev \ 39 libopencv-video-dev \ 40 libopencv-calib3d-dev \ 41 libopencv-features2d-dev \ 42 software-properties-common && \ 43 add-apt-repository -y ppa:openjdk-r/ppa && \ 44 apt-get update && apt-get install -y openjdk-8-jdk && \ 45 apt-get clean && \ 46 rm -rf /var/lib/apt/lists/* 47 48RUN update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-8 100 --slave /usr/bin/g++ g++ /usr/bin/g++-8 49RUN pip3 install --upgrade setuptools 50RUN pip3 install wheel 51RUN pip3 install future 52RUN pip3 install six==1.14.0 53RUN pip3 install tensorflow==1.14.0 54RUN pip3 install tf_slim 55 56RUN ln -s /usr/bin/python3 /usr/bin/python 57 58# Install bazel 59ARG BAZEL_VERSION=3.7.2 60RUN mkdir /bazel && \ 61 wget --no-check-certificate -O /bazel/installer.sh "https://github.com/bazelbuild/bazel/releases/download/${BAZEL_VERSION}/b\ 62azel-${BAZEL_VERSION}-installer-linux-x86_64.sh" && \ 63 wget --no-check-certificate -O /bazel/LICENSE.txt "https://raw.githubusercontent.com/bazelbuild/bazel/master/LICENSE" && \ 64 chmod +x /bazel/installer.sh && \ 65 /bazel/installer.sh && \ 66 rm -f /bazel/installer.sh 67 68COPY . /mediapipe/
あなたの回答
tips
プレビュー