问题描述:
借鉴:https://blog.youkuaiyun.com/weixin_34414196/article/details/85999903
错误信息:Could not find a version that satisfies the requirement cmake(from version:)
因为要安装人脸识别库中的dlib,所以需要先安装cmake,但是直接pip install cmake就开始报错。
然后看到这个博主在描述这个错误的时候,中途提到了这样做会报错:
但是因为模块不同,我想想反正已经错一下午了,我也不介意多错一会,就改了下模块试了试从豆瓣下载。
还真就成了!
问题解决:
pip install cmake -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com
虽然过程中有警告,但还是显示Successfully installed cmake-3.20.5