我想安装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”,但是升级已成功安装。 –