本文介绍了pip install ortools:无匹配的发行版-Alpine的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在docker中,我尝试运行pip install ortools,但找不到.其他pip安装程序包可以正常工作.我在Dockerfile中使用了"FROM python:3.6.8-alpine"
In a docker I try to run pip install ortools and it can't be found. Other pip install packages work flawlessly. I use "FROM python:3.6.8-alpine" in my Dockerfile
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
Root cause:Gooogle OR tools does not support alpine, since pypi is not supported on alpine
关注该问题的进展: https://github.com/google/or-tools/issues/756
推荐答案
https: //pypi.org/project/ortools/7.1.6722/#files 它只有Windows版本.
https://pypi.org/project/ortools/7.1.6722/#files it only has windows releases.
这篇关于pip install ortools:无匹配的发行版-Alpine的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!