在 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,因为 pypi 在 alpine 上不受支持
最佳答案
https://pypi.org/project/ortools/7.1.6722/#files它只有 Windows 版本。
关于python - pip 安装 ortools : No matching distribution - Alpine,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56287742/