Installation dlib, then all kinds of error,
What cmake not installed ah,
What boost not installed ah, then tried again, have not been resolved
Finally, find the most appropriate method. (Without downloading assorted)
1. First, download the file dlib-19.7.0-cp36-cp36m-win_amd64.whl, at the following link
Links: https://pan.baidu.com/s/1pz_mrmRTxppyRT2cTwtVIw extraction code: uc1u
py3.7 link: https://pan.baidu.com/s/1MKqW7WH2XP-J8MOLeq3cDA extraction code: rfh8
2. any lower it into the path, and then enters the command line to the directory, and then run the code:
pip install dlib-19.7.0-cp36-cp36m-win_amd64.whl
Enter after the installation.
Many error messages
Error 1
D:\Users\install-DLIB>pip install dlib-19.7.0-cp36-cp36m-win_amd64.whl
ERROR: dlib-19.7.0-cp36-cp36m-win_amd64.whl is not a supported wheel on this platform.
解决方法
View version does not match the version of python match
My py 3.7 3.6 download
download again
Looking in indexes: http://pypi.douban.com/simple
Collecting dlib==19.0.0
Downloading http://pypi.doubanio.com/packages/98/04/a42d2b901f2c456f86f3c8ace36e3df64d21d7f368b1cac468489205e850/dlib-19.0.0.tar.gz (7.8 MB)
Building wheels for collected packages: dlib
Building wheel for dlib (setup.py): started
Building wheel for dlib (setup.py): finished with status 'error'
Running setup.py clean for dlib
Failed to build dlib
Installing collected packages: dlib
Running setup.py install for dlib: started
Running setup.py install for dlib: finished with status 'error'ERROR: Command errored out with exit status 1:
command: 'C:\Users\wei\.virtualenvs\pyqt51-EL5sW8oD\Scripts\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\wei\\AppData\\Local\\Temp\\pycharm-packaging\\dlib\\setup.py'"'"'; __file__='"'"'C:\\Users\\wei\\AppData\\Local\\Temp\\pycharm-packaging\\dlib\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d 'C:\Users\Public\Documents\Wondershare\CreatorTemp\pip-wheel-gftqkhlz'
cwd: C:\Users\wei\AppData\Local\Temp\pycharm-packaging\dlib\
Complete output (43 lines):
Later I saw the py3.7
Success page
Import success
reference: