在 python 中安装 Google OR-Tools 时出错

Error installing Google OR-Tools in python

我正在尝试使用此命令安装 OR 工具:

python -m pip install --upgrade --user ortools

命令行的响应如下:

ERROR: Could not find a version that satisfies the requirement ortools (from versions: none)

ERROR: No matching distribution found for ortools

已经为 Windows 安装了 64 位 python 版本 3.8,但这似乎不是问题所在。

如何安装 ORtools?

Python 3.8 太新了。

您需要等待下一个版本或暂时降级到 python 3.7。 (我不建议在 windows 上从源安装)

参见:issue at github

lperron commented on Nov 9
[...] should be next release.

CURRENT release:

v7.4 (2019-10)
lperron released this on Oct 11 · 143 commits to master since this release

Python 3.8 was released on October 14th, 2019.