![为什么 pip 无法在 Ubuntu 上安装最新的 CMake](https://linux22.com/image/1168542/%E4%B8%BA%E4%BB%80%E4%B9%88%20pip%20%E6%97%A0%E6%B3%95%E5%9C%A8%20Ubuntu%20%E4%B8%8A%E5%AE%89%E8%A3%85%E6%9C%80%E6%96%B0%E7%9A%84%20CMake.png)
正如你所看到的https://pypi.org/project/cmake/,这不是最新版本。在 Windows 上,它按预期工作。这是错误还是什么?
root@85acafdb63d3 /app# pip3 install cmake
Collecting cmake
Downloading https://files.pythonhosted.org/packages/3e/3a/6d2c6bc7fb8eaf79bdc9d6d8647f54f83d22bf973552d5af5f2c86e89e8a/cmake-3.13.3-cp37-cp37m-manylinux1_x86_64.whl (15.9MB)
100% |████████████████████████████████| 15.9MB 60kB/s
Installing collected packages: cmake
Successfully installed cmake-3.13.3
答案1
事实证明默认的 pip 版本太旧了,请参阅https://github.com/scikit-build/cmake-python-distributions/issues/88。