[英]cannot create docker for unsupportive version of GDAL==2.4.1
I am trying to make docker from a python script.我正在尝试从 python 脚本制作 docker 。 I made the requirements.txt using this -
我使用它制作了 requirements.txt -
pip3 freeze > requirements.txt
The Dockerfile is as below: Dockerfile如下:
FROM python
COPY . /
RUN pip3 install -r requirements.txt
CMD [ "python", "./model/deploy/main.py" ]
It fails at this point -它在这一点上失败 -
Collecting GDAL==2.4.1 (from -r requirements.txt (line 42))
ERROR: Could not find a version that satisfies the requirement GDAL==2.4.1 (from -r requirements.txt (line 42)
When I manually try to install using -当我手动尝试使用 -
pip3 install GDAL==2.4.1
I get this -我明白了——
Requirement already satisfied: GDAL==2.4.1 in /usr/local/lib/python3.7/site-packages (2.4.1)
How can I fix the issue?我该如何解决这个问题? I need to create the docker.
我需要创建 docker。
There is no GDAL version 2.4.1 at PyPI . PyPI 没有 GDAL 版本 2.4.1 。 If you have it installed that probably means the version existed at some point in the past but later was removed by the maintainers.
如果您安装了它,这可能意味着该版本在过去的某个时间点存在,但后来被维护者删除。
Try 2.4.2 or 3.0.1.尝试 2.4.2 或 3.0.1。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.