/ bin / sh -c /install/install_pi_python3_toolchain.sh返回了非零代码:100

时间:2019-03-23 05:21:19

标签: python-3.x docker apt

我正在尝试通过遵循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

0 个答案:

没有答案