在docker中,我尝试运行pip install ortools,但找不到。其他pip安装程序包可以正常工作。我在Dockerfile中使用了“ FROM python:3.6.8-alpine”
bash-4.4# pip install ortools
Collecting ortools
ERROR: Could not find a version that satisfies the requirement ortools (from versions: none)
ERROR: No matching distribution found for ortools
bash-4.4# pip install --upgrade pip
Requirement already up-to-date: pip in /usr/local/lib/python3.6/site-packages (19.1.1)
根本原因: Gooogle OR工具不支持Alpine,因为Alpine不支持pypi