我正在尝试通过遵循this使用Docker for Python3在Raspberry PI 3B上安装Tensorflow。安装Docker并完成git checkout r.10
后,当我运行docker命令时,它出现以下错误
外壳文件install_pi_python3_toolchain.sh
如下
dpkg --add-architecture armhf
echo 'deb [arch=armhf] http://ports.ubuntu.com/ trusty main restricted universe multiverse' >> /etc/apt/sources.list.d/armhf.list
echo 'deb [arch=armhf] http://ports.ubuntu.com/ trusty-updates main restricted universe multiverse' >> /etc/apt/sources.list.d/armhf.list
echo 'deb [arch=armhf] http://ports.ubuntu.com/ trusty-security main restricted universe multiverse' >> /etc/apt/sources.list.d/armhf.list
echo 'deb [arch=armhf] http://ports.ubuntu.com/ trusty-backports main restricted universe multiverse' >> /etc/apt/sources.list.d/armhf.list
sed -i 's#deb http://archive.ubuntu.com/ubuntu/#deb [arch=amd64] http://archive.ubuntu.com/ubuntu/#g' /etc/apt/sources.list
apt-get -y update
apt-get install -y libpython3-all-dev:armhf
echo "deb [arch=amd64] http://storage.googleapis.com/bazel-apt stable jdk1.8" | sudo tee /etc/apt/sources.list.d/bazel.list
wget http://bazel.build/bazel-release.pub.gpg | sudo -E apt-key add -
apt-get -y update
#rm -rf /usr/local/bin/bazel
#apt-get install -y bazel python3 python3-numpy python3-dev python3-pip
我通过其他一些答案后添加了-y
。