我想安裝DLIB模塊,我已經安裝了CMake的和升壓蟒蛇但蟒蛇當我安裝DLIB它給我的錯誤:如何將BOOST_ROOT和BOOST_LIBRARY傳遞給CMake?
We couldn't find the right version of boost python. If you installed boost and you are still getting this error then you might have installed a version of boost that was compiled with a different version of visual studio than the one you are using. So you have to make sure that the version of visual studio is the same version that was used to compile the copy of boost you are using. -- Set the BOOST_ROOT and BOOST_LIBRARYDIR environment variables before running cmake.
例如事情是這樣的:
set BOOST_ROOT=C:\local\boost_1_57_0
set BOOST_LIBRARYDIR=C:\local\boost_1_57_0\stage\lib
我無法弄清楚如何設置BOOST_ROOT
和BOOST_LIBRARYDIR
路徑。
當我在命令行中運行「pip install dlib」時,根據您的解決方案設置變量後,會給我帶來相同的錯誤i-e「設置BOOST_ROOT和BOOST_LIBRARYDIR」,但是升級已成功安裝。 –