命令“ xx”返回了非零代码:1

时间:2020-01-05 21:35:53

标签: python docker pip raspberry-pi

我正在尝试在树莓派3上从(https://github.com/jamct/facerec)运行facerecogition。因此,by by与最新版本的Raspbian Stretch一起运行。

我正在跑步:

docker build -t facerec:latest .

日志为:

Sending build context to Docker daemon  92.16kB
Step 1/8 : FROM resin/raspberry-pi-python:3
3: Pulling from resin/raspberry-pi-python
4dd85375138c: Pull complete
ee3eb420bc0e: Pull complete

.
.
.

Setting up zip (3.0-8) ...
Setting up dh-python (1.20141111-2) ...
Setting up python3 (3.4.2-2) ...
Setting up python3-dev (3.4.2-2) ...
Processing triggers for libc-bin (2.19-18+deb8u10) ...
Removing intermediate container 547f850540e3
 ---> f91765949603
Step 5/8 : RUN python3 -m ensurepip --upgrade && pip3 install --upgrade picamera[array] dlib
 ---> Running in 5a803961b75d
Looking in links: /tmp/tmp7kn7e8fp
Requirement already up-to-date: setuptools in /usr/local/lib/python3.6/site-packages (39.1.0)
Requirement already up-to-date: pip in /usr/local/lib/python3.6/site-packages (10.0.1)
Looking in indexes: https://pypi.python.org/simple/
Collecting picamera[array]
  Downloading https://files.pythonhosted.org/packages/79/c4/80afe871d82ab1d5c9d8f0c0258228a8a0ed96db07a78ef17e7fba12fda8/picamera-1.13.tar.gz (143kB)
Collecting dlib
  Downloading https://files.pythonhosted.org/packages/63/92/05c3b98636661cb80d190a5a777dd94effcc14c0f6893222e5ca81e74fbc/dlib-19.19.0.tar.gz (3.2MB)
Collecting numpy (from picamera[array])
  Downloading https://files.pythonhosted.org/packages/31/0a/5df350c29a06835d534a6c4f5681075304da38d85f1c69e5226a635a67ce/numpy-1.18.0.zip (5.4MB)
  Could not find a version that satisfies the requirement Cython>=0.29.13 (from versions: )
No matching distribution found for Cython>=0.29.13
You are using pip version 10.0.1, however version 19.3.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
The command '/bin/sh -c python3 -m ensurepip --upgrade && pip3 install --upgrade picamera[array] dlib' returned a non-zero code: 1

我的点子版本是:

pip 9.0.1 from /usr/lib/python2.7/dist-packages (python 2.7)

...但是我更新了

apt-get update && apt-get upgrade

它告诉我这是最新版本。

我想,它是日志中的最后一个条目:

The command '/bin/sh -c python3 -m ensurepip --upgrade && pip3 install --upgrade picamera[array] dlib' returned a non-zero code: 1

我尝试通过google解决此问题,但是由于我在使用树莓派和docker方面非常陌生,如果有人可以提供帮助,我将非常感激。

如果有人需要完整的日志:https://www.codepile.net/pile/P4xNWyoe(希望它能起作用,请不要使用它)

欢呼

0 个答案:

没有答案