Python3.7 pip安装 dlib
报错:
ERROR: Command errored out with exit status 1: /home/jovyan/anaconda3/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-3cbh3fa9/dlib/setup.py'"'"'; __file__='"'"'/tmp/pip-install-3cbh3fa9/dlib/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-a4gya25z/install-record.txt --single-version-externally-managed --compile Check the logs for full command output.
需要安装cmake,opencv,以及指定的dlib版本:
pip install cmake==3.12.0 -i https://mirrors.ustc.edu.cn/pypi/web/simple
pip install opencv-python==3.4.2.17 -i https://mirrors.ustc.edu.cn/pypi/web/simple
pip install dlib==19.16 -i https://mirrors.ustc.edu.cn/pypi/web/simple
来源:CSDN
作者:哗啦呼啦嘿
链接:https://blog.csdn.net/weixin_40446557/article/details/103962309