python - pip 安装 ortools : No matching distribution - Alpine

标签 python pip alpine-linux

在 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://github.com/google/or-tools/issues/756

最佳答案

关于python - pip 安装 ortools : No matching distribution - Alpine,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56287742/

相关文章:

python - 缓存字符串列表转换为列表

Python 错误 "unbound method must be called"?

python - 如何使用 pandas 和 pytest 进行 TDD?

python - 卸载 pip 和 easy_install

python-3.x - 如何卸载和安装特定的 python 版本

linux - 运行 Alpine Linux 的 Docker 容器中 rrdgraph 中的自定义字体

docker - 非 Alpine dind docker 图像

python - 使用 CFFI 将多个 numpy 数组传递给 C

python - `--install-option=' --prefix '` and ` --root`和 `--target`之间的 pip (python)差异

linux - 无法使用 Alpine 和 Busybox docker 图像运行可执行文件