在安装dlib库时,使用pip和conda安装都没有安装成功,在使用conda安装时,报错信息为:RemoveError: ‘requests’ is a dependency of conda and cannot be removed from conda’s operating environment.在查阅信息后,发现可能是conda需要更新,在这里,就把安装dlib可能遇到的问题和conda问题的解决办法一并记录。
Anaconda安装库报错:RemoveError: ‘requests’ is a dependency of conda and cannot be removed from conda’s operating environment.
安装dlib,依赖库问题
首先在dlib安装前,检查是否有有依赖库,cmake和boost。
若没有,则进行依赖库的安装
pip install cmake
pip install boost
之后进行安装,对于conda安装为
conda install dlib
未安装完成,出现报错,报错信息为RemoveError: ‘requests’ is a dependency of conda and cannot be removed from conda’s operating environment. 这个问题是conda自身的问题,需要对conda进行更新。