我正在尝试设置一个 Python docker 容器,当我运行命令“docker-compose up”来构建Dockerfile它时,它会在下面向我抛出此错误消息。
docker文件两周前就搭建成功了,我想到要重建docker容器,因为requirements.txt.
尝试构建映像会产生以下错误:
Collecting cryptography
Downloading cryptography-2.8.tar.gz (504 kB)
Installing build dependencies: started
Installing build dependencies: finished with status 'error'
ERROR: Command errored out with exit status 1:
command: /usr/local/bin/python /usr/local/lib/python3.7/site-packages/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-6ilf25i_/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- 'setuptools>=40.6.0' wheel 'cffi>=1.8,!=1.11.3; platform_python_implementation != '"'"'PyPy'"'"''
cwd: None
Complete output (140 lines):
Collecting setuptools>=40.6.0
Downloading setuptools-46.0.0-py3-none-any.whl (582 kB)
Collecting wheel
Downloading wheel-0.34.2-py2.py3-none-any.whl (26 kB)
Collecting cffi!=1.11.3,>=1.8
Downloading cffi-1.14.0.tar.gz …Run Code Online (Sandbox Code Playgroud)