The compile script is:
mkdirbuild
cd build
cmake ../../tools/python -DUSE_SSE2_INSTRUCTIONS=ON
cmake--build . --config Release --target installcd ..
You forgot the -D. So you have to say, cmake -DUSE_SSE2_INSTRUCTIONS=ON(-DUSE_SSE2_INSTRUCTIONS=0)
cmake ../../tools/python -DUSE_SSE4_INSTRUCTIONS=OFF
cmake ../../tools/python -DUSE_SSE2_INSTRUCTIONS=ON
python setup.py install --yes USE_AVX_INSTRUCTIONS --yes USE_SSE2_INSTRUCTIONS --yes USE_SSE4_INSTRUCTIONS
只安装基于SSE2指令集的Dlib包:
python3.6 setup.py build --no USE_AVX_INSTRUCTIONS --yes USE_SSE2_INSTRUCTIONS --no USE_SSE4_INSTRUCTIONS
CMake编译用: -DUSE_SSE4_INSTRUCTIONS=OFF
python setup.py build 编译用:--no USE_SSE4_INSTRUCTIONS
for Python 3 support use:
python setup.py install --yes DPYTHON3
I just ran into this and it was because the