Error-Python3.7安装dlib

人盡茶涼 提交于 2020-01-29 04:11:49

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

 

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!