在Linux环境下(conda),下载dlib库
步骤如下:
pip install cmake
pip install boost
pip install dlib-19.19.0.tar.gz
下载地址:链接:https://pan.baidu.com/s/1zhoKwj73HSU8pdyH1gQydg
提取码:y7iy
出现的问题:
pip install cmake出现错误:
ERROR: Could not install packages due to an OSError: Missing dependencies for SOCKS support.
解决方法:
unset all_proxy
下载cmake后出现警告:
WARNING: Running pip as the ‘root’ user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
解决方法:
切换成非root用户即可
给非root用户添加权限:
给非root用户添加权限:
vi /etc/sudoers
## Allow root to run any commands anywhere
root ALL=(ALL) ALL
hadoop ALL=(ALL) NOPASSWD: ALL
在windows环境下(conda),下载dlib库
步骤如下:
pip install cmake
pip install boost
pip install dlib
下载dlib库时,出错
Building wheel for dlib (setup.py) … error
解决方法:
pip install cmake
pip install boost