我想安装一个dlib库,因为dlib库是人脸识别库的依赖库,安装了dlib后我再安装人脸识别,可是报错:ERROR:Commanderroredoutwithexitstatus1:command:'c:\users\li_2704\appdata\local...
我想安装一个dlib库,因为dlib库是人脸识别库的依赖库,安装了dlib后我再安装人脸识别,可是报错:ERROR: Command errored out with exit status 1: command: 'c:\users\li_2704\appdata\local\programs\python\python38-32\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Li_2704\\AppData\\Local\\Temp\\pip-install-y_rqoddj\\dlib\\setup.py'"'"'; __file__='"'"'C:\\Users\\Li_2704\\AppData\\Local\\Temp\\pip-install-y_rqoddj\\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 'C:\Users\Li_2704\AppData\Local\Temp\pip-record-j977negr\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\li_2704\appdata\local\programs\python\python38-32\Include\dlib'FileNotFoundError: [WinError 2] 系统找不到指定的文件。RuntimeError("\n*******************************************************************\n" + RuntimeError: ******************************************************************* CMake must be installed to build the following extensions: dlib ******************************************************************* ----------------------------------------ERROR: Command errored out with exit status 1: 'c:\users\li_2704\appdata\local\programs\python\python38-32\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Li_2704\\AppData\\Local\\Temp\\pip-install-y_rqoddj\\dlib\\setup.py'"'"'; __file__='"'"'C:\\Users\\Li_2704\\AppData\\Local\\Temp\\pip-install-y_rqoddj\\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 'C:\Users\Li_2704\AppData\Local\Temp\pip-record-j977negr\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\li_2704\appdata\local\programs\python\python38-32\Include\dlib' Check the logs for full command output.我甚至编了一个“安装模块”程序,程序如下:import oswhile True: try: import dlib except: os.system('pip install -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com dlib')但还是安装不了,谁知道怎么解决?
展开