Background: The work needs to be installed in the linux environment dlib, conda after the completion of the installation can not find dlib pip inside, so the lead pack fail, so try to install the source code with dlib
1, source code download:
URL: https://pypi.org/simple/dlib/
I was python3.6.6, tried many times only to find 19.15.0 can be used, python3.7 can 19.17.0
2, unzip the download is complete, installation
python setup.py install
Possible problems encountered:
1、AttributeError: Module Pip has no attribute 'main'
The reason: the wrong version, for example, I previously used version 19.8.1 can not, not go into the specific reasons
2、 Cannot find appropriate C compiler on this system.
Solution: lack of gcc, Suao APT install gcc
3、 Compile error: Cannot find a C++ compiler that supports both C++11 and the specified C++ flags
Solve: sudo APT-GET install G ++
4、 Cannot find appropriate Makefile processor on this system
Solution: missing the make, sudo APT install the make
5、 CMake must be installed to build the following extensions: dlib
Solution: lack cmake Download: https://cmake.org/download/ , after decompression:
./bootstrap make && make install