- android - 多次调用 OnPrimaryClipChangedListener
- android - 无法更新 RecyclerView 中的 TextView 字段
- android.database.CursorIndexOutOfBoundsException : Index 0 requested, 光标大小为 0
- android - 使用 AppCompat 时,我们是否需要明确指定其 UI 组件(Spinner、EditText)颜色
第一次尝试-) 我安装了 CMake、Mingw、Boost 并且已经有了 VS 2017 社区版本。我使用this成功安装了它指导。我什至在 Git Bash 上测试过它并且它有效。但我想这不适用于Python?因为我无法在 Python IDLE、Notebook 等上导入和使用它。
第二次尝试-)另外,我使用this通过VS安装了它。指导。它说.exe 文件将位于 LightGBM-master/windows/x64/Release 文件夹中。
我想这个指南是为 VS 用户准备的,而不是为我准备的?
第三次尝试-) pip install lightgbm --install-option=--gpu
给我错误:异常:请先安装 CMake
我已经有了 CMake,并将 CMake 添加到系统和用户路径中。
C:\Program Files\CMake\bin
还给出有关 Boost 变量的警告,但在第一次尝试中,我能够使用 Boost 安装 lightgbm。
LightGBM_compilation.txt 更详细地显示错误:
-- Selecting Windows SDK version 10.0.17763.0 to target Windows 10.0.17134.
-- The C compiler identification is MSVC 19.16.27026.1
-- The CXX compiler identification is MSVC 19.16.27026.1
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.16.27023/bin/Hostx86/x64/cl.exe
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.16.27023/bin/Hostx86/x64/cl.exe
-- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.16.27023/bin/Hostx86/x64/cl.exe
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.16.27023/bin/Hostx86/x64/cl.exe
-- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found OpenMP_C: -openmp (found version "2.0")
-- Found OpenMP_CXX: -openmp (found version "2.0")
-- Found OpenMP: TRUE (found version "2.0")
-- Looking for CL_VERSION_2_2
-- Looking for CL_VERSION_2_2 - not found
-- Looking for CL_VERSION_2_1
-- Looking for CL_VERSION_2_1 - not found
-- Looking for CL_VERSION_2_0
-- Looking for CL_VERSION_2_0 - not found
-- Looking for CL_VERSION_1_2
-- Looking for CL_VERSION_1_2 - found
-- Found OpenCL: C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v10.0/lib/x64/OpenCL.lib (found version "1.2")
-- OpenCL include directory:C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v10.0/include CMake Warning (dev) at CMakeLists.txt:97 (find_package): Policy CMP0074 is not set: find_package uses <PackageName>_ROOT variables. Run "cmake --help-policy CMP0074" for policy details. Use the cmake_policy command to set the policy and suppress this warning.
Environment variable Boost_ROOT is set to:
C:\boost\boost_1_69_0
For compatibility, CMake is ignoring the variable. This warning is for project developers. Use -Wno-dev to suppress it.
-- Boost version: 1.69.0
-- Found the following Boost libraries:
-- filesystem
-- system
-- Configuring done
-- Generating done
-- Build files have been written to: C:/Users/dogus/AppData/Local/Temp/pip-install-1uszztyz/lightgbm/build_cpp Microsoft (R) Build Engine version 15.9.21+g9802d43bc3 for .NET Framework Copyright (C) Microsoft Corporation. All rights reserved.
Build started 4/5/2019 10:42:58 AM. Project "C:\Users\dogus\AppData\Local\Temp\pip-install-1uszztyz\lightgbm\build_cpp\_lightgbm.vcxproj" on node 1 (default targets). Project "C:\Users\dogus\AppData\Local\Temp\pip-install-1uszztyz\lightgbm\build_cpp\_lightgbm.vcxproj" (1) is building "C:\Users\dogus\AppData\Local\Temp\pip-install-1uszztyz\lightgbm\build_cpp\ZERO_CHECK.vcxproj" (2) on node 1 (default targets). PrepareForBuild: Creating directory "x64\Release\ZERO_CHECK\". C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.CppBuild.targets(399,5): warning MSB8029: The Intermediate directory or Output directory cannot reside under the Temporary directory as it could lead to issues with incremental build. [C:\Users\dogus\AppData\Local\Temp\pip-install-1uszztyz\lightgbm\build_cpp\ZERO_CHECK.vcxproj] Creating directory "x64\Release\ZERO_CHECK\ZERO_CHECK.tlog\". InitializeBuildStatus: Creating "x64\Release\ZERO_CHECK\ZERO_CHECK.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified. CustomBuild: Checking Build System CMake does not need to re-run because C:/Users/dogus/AppData/Local/Temp/pip-install-1uszztyz/lightgbm/build_cpp/CMakeFiles/generate.stamp is up-to-date. FinalizeBuildStatus: Deleting file "x64\Release\ZERO_CHECK\ZERO_CHECK.tlog\unsuccessfulbuild". Touching "x64\Release\ZERO_CHECK\ZERO_CHECK.tlog\ZERO_CHECK.lastbuildstate". Done Building Project "C:\Users\dogus\AppData\Local\Temp\pip-install-1uszztyz\lightgbm\build_cpp\ZERO_CHECK.vcxproj" (default targets). PrepareForBuild: Creating directory "_lightgbm.dir\Release\". C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.CppBuild.targets(399,5): warning MSB8029: The Intermediate directory or Output directory cannot reside under the Temporary directory as it could lead to issues with incremental build. [C:\Users\dogus\AppData\Local\Temp\pip-install-1uszztyz\lightgbm\build_cpp\_lightgbm.vcxproj] Creating directory "C:\Users\dogus\AppData\Local\Temp\pip-install-1uszztyz\lightgbm\compile\Release\". Creating directory "_lightgbm.dir\Release\_lightgbm.tlog\". InitializeBuildStatus: Creating "_lightgbm.dir\Release\_lightgbm.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified. CustomBuild: Building Custom Rule C:/Users/dogus/AppData/Local/Temp/pip-install-1uszztyz/lightgbm/compile/CMakeLists.txt CMake does not need to re-run because C:/Users/dogus/AppData/Local/Temp/pip-install-1uszztyz/lightgbm/build_cpp/CMakeFiles/generate.stamp is up-to-date. ClCompile: C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\CL.exe /c /I"C:\Users\dogus\AppData\Local\Temp\pip-install-1uszztyz\lightgbm\compile\compute\include" /I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.0\include" /IC:\boost\boost_1_69_0 /I"C:\Users\dogus\AppData\Local\Temp\pip-install-1uszztyz\lightgbm\compile\include" /nologo /W4 /WX- /diagnostics:classic /MP /O2 /Ob2 /Oi /Ot /Oy /GL /D WIN32 /D _WINDOWS /D NDEBUG /D USE_SOCKET /D BOOST_ALL_NO_LIB /D USE_GPU /D "CMAKE_INTDIR=\"Release\"" /D _lightgbm_EXPORTS /D _WINDLL /D _MBCS /Gm- /EHsc /MD /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /GR /openmp /Fo"_lightgbm.dir\Release\\" /Fd"_lightgbm.dir\Release\vc141.pdb" /Gd /TP /errorReport:queue "C:\Users\dogus\AppData\Local\Temp\pip-install-1uszztyz\lightgbm\compile\src\c_api.cpp" "C:\Users\dogus\AppData\Local\Temp\pip-install-1uszztyz\lightgbm\compile\src\lightgbm_R.cpp" "C:\Users\dogus\AppData\Local\Temp\pip-install-1uszztyz\lightgbm\compile\src\application\application.cpp" "C:\Users\dogus\AppData\Local\Temp\pip-install-1uszztyz\lightgbm\compile\src\boosting\boosting.cpp" "C:\Users\dogus\AppData\Local\Temp\pip-install-1uszztyz\lightgbm\compile\src\boosting\gbdt.cpp" "C:\Users\dogus\AppData\Local\Temp\pip-install-1uszztyz\lightgbm\compile\src\boosting\gbdt_model_text.cpp" "C:\Users\dogus\AppData\Local\Temp\pip-install-1uszztyz\lightgbm\compile\src\boosting\gbdt_prediction.cpp" "C:\Users\dogus\AppData\Local\Temp\pip-install-1uszztyz\lightgbm\compile\src\boosting\prediction_early_stop.cpp" "C:\Users\dogus\AppData\Local\Temp\pip-install-1uszztyz\lightgbm\compile\src\io\bin.cpp" "C:\Users\dogus\AppData\Local\Temp\pip-install-1uszztyz\lightgbm\compile\src\io\config.cpp" "C:\Users\dogus\AppData\Local\Temp\pip-install-1uszztyz\lightgbm\compile\src\io\config_auto.cpp" "C:\Users\dogus\AppData\Local\Temp\pip-install-1uszztyz\lightgbm\compile\src\io\dataset.cpp" "C:\Users\dogus\AppData\Local\Temp\pip-install-1uszztyz\lightgbm\compile\src\io\dataset_loader.cpp" "C:\Users\dogus\AppData\Local\Temp\pip-install-1uszztyz\lightgbm\compile\src\io\file_io.cpp" "C:\Users\dogus\AppData\Local\Temp\pip-install-1uszztyz\lightgbm\compile\src\io\json11.cpp" "C:\Users\dogus\AppData\Local\Temp\pip-install-1uszztyz\lightgbm\compile\src\io\metadata.cpp" "C:\Users\dogus\AppData\Local\Temp\pip-install-1uszztyz\lightgbm\compile\src\io\parser.cpp" "C:\Users\dogus\AppData\Local\Temp\pip-install-1uszztyz\lightgbm\compile\src\io\tree.cpp" "C:\Users\dogus\AppData\Local\Temp\pip-install-1uszztyz\lightgbm\compile\src\metric\dcg_calculator.cpp" "C:\Users\dogus\AppData\Local\Temp\pip-install-1uszztyz\lightgbm\compile\src\metric\metric.cpp" "C:\Users\dogus\AppData\Local\Temp\pip-install-1uszztyz\lightgbm\compile\src\network\linker_topo.cpp" "C:\Users\dogus\AppData\Local\Temp\pip-install-1uszztyz\lightgbm\compile\src\network\linkers_mpi.cpp" "C:\Users\dogus\AppData\Local\Temp\pip-install-1uszztyz\lightgbm\compile\src\network\linkers_socket.cpp" "C:\Users\dogus\AppData\Local\Temp\pip-install-1uszztyz\lightgbm\compile\src\network\network.cpp" "C:\Users\dogus\AppData\Local\Temp\pip-install-1uszztyz\lightgbm\compile\src\objective\objective_function.cpp" "C:\Users\dogus\AppData\Local\Temp\pip-install-1uszztyz\lightgbm\compile\src\treelearner\data_parallel_tree_learner.cpp" "C:\Users\dogus\AppData\Local\Temp\pip-install-1uszztyz\lightgbm\compile\src\treelearner\feature_parallel_tree_learner.cpp" "C:\Users\dogus\AppData\Local\Temp\pip-install-1uszztyz\lightgbm\compile\src\treelearner\gpu_tree_learner.cpp" "C:\Users\dogus\AppData\Local\Temp\pip-install-1uszztyz\lightgbm\compile\src\treelearner\serial_tree_learner.cpp" "C:\Users\dogus\AppData\Local\Temp\pip-install-1uszztyz\lightgbm\compile\src\treelearner\tree_learner.cpp" "C:\Users\dogus\AppData\Local\Temp\pip-install-1uszztyz\lightgbm\compile\src\treelearner\voting_parallel_tree_learner.cpp" c_api.cpp lightgbm_R.cpp application.cpp boosting.cpp gbdt.cpp gbdt_model_text.cpp gbdt_prediction.cpp prediction_early_stop.cpp bin.cpp config.cpp config_auto.cpp dataset.cpp dataset_loader.cpp file_io.cpp json11.cpp metadata.cpp parser.cpp tree.cpp dcg_calculator.cpp metric.cpp linker_topo.cpp linkers_mpi.cpp linkers_socket.cpp network.cpp objective_function.cpp data_parallel_tree_learner.cpp feature_parallel_tree_learner.cpp gpu_tree_learner.cpp serial_tree_learner.cpp tree_learner.cpp voting_parallel_tree_learner.cpp Link: C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\link.exe /ERRORREPORT:QUEUE /OUT:"C:\Users\dogus\AppData\Local\Temp\pip-install-1uszztyz\lightgbm\compile\Release\lib_lightgbm.dll" /INCREMENTAL:NO /NOLOGO "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.0\lib\x64\OpenCL.lib" "C:\boost\boost-build\lib\libboost_filesystem.a" "C:\boost\boost-build\lib\libboost_system.a" kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib /MANIFEST /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /manifest:embed /PDB:"C:/Users/dogus/AppData/Local/Temp/pip-install-1uszztyz/lightgbm/compile/Release/lib_lightgbm.pdb" /SUBSYSTEM:CONSOLE /TLBID:1 /DYNAMICBASE /NXCOMPAT /IMPLIB:"C:/Users/dogus/AppData/Local/Temp/pip-install-1uszztyz/lightgbm/compile/Release/lib_lightgbm.lib" /MACHINE:X64 /machine:x64 /DLL _lightgbm.dir\Release\c_api.obj
_lightgbm.dir\Release\lightgbm_R.obj _lightgbm.dir\Release\application.obj _lightgbm.dir\Release\boosting.obj _lightgbm.dir\Release\gbdt.obj _lightgbm.dir\Release\gbdt_model_text.obj _lightgbm.dir\Release\gbdt_prediction.obj _lightgbm.dir\Release\prediction_early_stop.obj _lightgbm.dir\Release\bin.obj _lightgbm.dir\Release\config.obj _lightgbm.dir\Release\config_auto.obj _lightgbm.dir\Release\dataset.obj _lightgbm.dir\Release\dataset_loader.obj _lightgbm.dir\Release\file_io.obj _lightgbm.dir\Release\json11.obj _lightgbm.dir\Release\metadata.obj _lightgbm.dir\Release\parser.obj _lightgbm.dir\Release\tree.obj _lightgbm.dir\Release\dcg_calculator.obj _lightgbm.dir\Release\metric.obj _lightgbm.dir\Release\linker_topo.obj _lightgbm.dir\Release\linkers_mpi.obj _lightgbm.dir\Release\linkers_socket.obj _lightgbm.dir\Release\network.obj _lightgbm.dir\Release\objective_function.obj _lightgbm.dir\Release\data_parallel_tree_learner.obj _lightgbm.dir\Release\feature_parallel_tree_learner.obj _lightgbm.dir\Release\gpu_tree_learner.obj _lightgbm.dir\Release\serial_tree_learner.obj _lightgbm.dir\Release\tree_learner.obj _lightgbm.dir\Release\voting_parallel_tree_learner.obj c_api.obj : MSIL .netmodule or module compiled with /GL found; restarting link with /LTCG; add /LTCG to the link command line to improve linker performance
Creating library C:/Users/dogus/AppData/Local/Temp/pip-install-1uszztyz/lightgbm/compile/Release/lib_lightgbm.lib and object C:/Users/dogus/AppData/Local/Temp/pip-install-1uszztyz/lightgbm/compile/Release/lib_lightgbm.exp gpu_tree_learner.obj : error LNK2001: unresolved external symbol "void
__cdecl boost::filesystem::path_traits::convert(char const *,char const *,class std::basic_string<wchar_t,struct std::char_traits<wchar_t>,class std::allocator<wchar_t> > &,class std::codecvt<wchar_t,char,struct _Mbstatet> const &)" (?convert@path_traits@filesystem@boost@@YAXPEBD0AEAV?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@AEBV?$codecvt@_WDU_Mbstatet@@@5@@Z) [C:\Users\dogus\AppData\Local\Temp\pip-install-1uszztyz\lightgbm\build_cpp\_lightgbm.vcxproj] gpu_tree_learner.obj : error LNK2001: unresolved external symbol "void
__cdecl boost::filesystem::path_traits::convert(wchar_t const *,wchar_t const *,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > &,class std::codecvt<wchar_t,char,struct _Mbstatet> const &)" (?convert@path_traits@filesystem@boost@@YAXPEB_W0AEAV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@AEBV?$codecvt@_WDU_Mbstatet@@@5@@Z) [C:\Users\dogus\AppData\Local\Temp\pip-install-1uszztyz\lightgbm\build_cpp\_lightgbm.vcxproj] gpu_tree_learner.obj : error LNK2001: unresolved external symbol "class boost::filesystem::file_status __cdecl boost::filesystem::detail::status(class boost::filesystem::path const &,class boost::system::error_code *)" (?status@detail@filesystem@boost@@YA?AVfile_status@23@AEBVpath@23@PEAVerror_code@system@3@@Z) [C:\Users\dogus\AppData\Local\Temp\pip-install-1uszztyz\lightgbm\build_cpp\_lightgbm.vcxproj] gpu_tree_learner.obj : error LNK2001: unresolved external symbol "bool
__cdecl boost::filesystem::detail::create_directories(class boost::filesystem::path const &,class boost::system::error_code *)" (?create_directories@detail@filesystem@boost@@YA_NAEBVpath@23@PEAVerror_code@system@3@@Z) [C:\Users\dogus\AppData\Local\Temp\pip-install-1uszztyz\lightgbm\build_cpp\_lightgbm.vcxproj] gpu_tree_learner.obj : error LNK2001: unresolved external symbol "public: static class std::codecvt<wchar_t,char,struct _Mbstatet> const & __cdecl boost::filesystem::path::codecvt(void)" (?codecvt@path@filesystem@boost@@SAAEBV?$codecvt@_WDU_Mbstatet@@@std@@XZ) [C:\Users\dogus\AppData\Local\Temp\pip-install-1uszztyz\lightgbm\build_cpp\_lightgbm.vcxproj] gpu_tree_learner.obj : error LNK2001: unresolved external symbol "public: class boost::filesystem::path & __cdecl boost::filesystem::path::make_preferred(void)" (?make_preferred@path@filesystem@boost@@QEAAAEAV123@XZ) [C:\Users\dogus\AppData\Local\Temp\pip-install-1uszztyz\lightgbm\build_cpp\_lightgbm.vcxproj] C:\Users\dogus\AppData\Local\Temp\pip-install-1uszztyz\lightgbm\compile\Release\lib_lightgbm.dll : fatal error LNK1120: 6 unresolved externals [C:\Users\dogus\AppData\Local\Temp\pip-install-1uszztyz\lightgbm\build_cpp\_lightgbm.vcxproj] Done Building Project "C:\Users\dogus\AppData\Local\Temp\pip-install-1uszztyz\lightgbm\build_cpp\_lightgbm.vcxproj" (default targets) -- FAILED.
Build FAILED.
"C:\Users\dogus\AppData\Local\Temp\pip-install-1uszztyz\lightgbm\build_cpp\_lightgbm.vcxproj" (default target) (1) -> "C:\Users\dogus\AppData\Local\Temp\pip-install-1uszztyz\lightgbm\build_cpp\ZERO_CHECK.vcxproj" (default target) (2) -> (PrepareForBuild target) -> C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.CppBuild.targets(399,5): warning MSB8029: The Intermediate directory or Output directory cannot reside under the Temporary directory as it could lead to issues with incremental build. [C:\Users\dogus\AppData\Local\Temp\pip-install-1uszztyz\lightgbm\build_cpp\ZERO_CHECK.vcxproj]
"C:\Users\dogus\AppData\Local\Temp\pip-install-1uszztyz\lightgbm\build_cpp\_lightgbm.vcxproj" (default target) (1) -> C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.CppBuild.targets(399,5): warning MSB8029: The Intermediate directory or Output directory cannot reside under the Temporary directory as it could lead to issues with incremental build. [C:\Users\dogus\AppData\Local\Temp\pip-install-1uszztyz\lightgbm\build_cpp\_lightgbm.vcxproj]
"C:\Users\dogus\AppData\Local\Temp\pip-install-1uszztyz\lightgbm\build_cpp\_lightgbm.vcxproj" (default target) (1) -> (Link target) -> gpu_tree_learner.obj : error LNK2001: unresolved external symbol "void __cdecl boost::filesystem::path_traits::convert(char const *,char const
*,class std::basic_string<wchar_t,struct std::char_traits<wchar_t>,class std::allocator<wchar_t> > &,class std::codecvt<wchar_t,char,struct _Mbstatet> const &)" (?convert@path_traits@filesystem@boost@@YAXPEBD0AEAV?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@AEBV?$codecvt@_WDU_Mbstatet@@@5@@Z) [C:\Users\dogus\AppData\Local\Temp\pip-install-1uszztyz\lightgbm\build_cpp\_lightgbm.vcxproj] gpu_tree_learner.obj : error LNK2001: unresolved external symbol "void
__cdecl boost::filesystem::path_traits::convert(wchar_t const *,wchar_t const *,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > &,class std::codecvt<wchar_t,char,struct _Mbstatet> const &)" (?convert@path_traits@filesystem@boost@@YAXPEB_W0AEAV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@AEBV?$codecvt@_WDU_Mbstatet@@@5@@Z) [C:\Users\dogus\AppData\Local\Temp\pip-install-1uszztyz\lightgbm\build_cpp\_lightgbm.vcxproj] gpu_tree_learner.obj : error LNK2001: unresolved external symbol "class boost::filesystem::file_status __cdecl boost::filesystem::detail::status(class boost::filesystem::path const &,class boost::system::error_code *)" (?status@detail@filesystem@boost@@YA?AVfile_status@23@AEBVpath@23@PEAVerror_code@system@3@@Z) [C:\Users\dogus\AppData\Local\Temp\pip-install-1uszztyz\lightgbm\build_cpp\_lightgbm.vcxproj] gpu_tree_learner.obj : error LNK2001: unresolved external symbol "bool
__cdecl boost::filesystem::detail::create_directories(class boost::filesystem::path const &,class boost::system::error_code *)" (?create_directories@detail@filesystem@boost@@YA_NAEBVpath@23@PEAVerror_code@system@3@@Z) [C:\Users\dogus\AppData\Local\Temp\pip-install-1uszztyz\lightgbm\build_cpp\_lightgbm.vcxproj] gpu_tree_learner.obj : error LNK2001: unresolved external symbol "public: static class std::codecvt<wchar_t,char,struct _Mbstatet> const & __cdecl boost::filesystem::path::codecvt(void)" (?codecvt@path@filesystem@boost@@SAAEBV?$codecvt@_WDU_Mbstatet@@@std@@XZ) [C:\Users\dogus\AppData\Local\Temp\pip-install-1uszztyz\lightgbm\build_cpp\_lightgbm.vcxproj] gpu_tree_learner.obj : error LNK2001: unresolved external symbol "public: class boost::filesystem::path & __cdecl boost::filesystem::path::make_preferred(void)" (?make_preferred@path@filesystem@boost@@QEAAAEAV123@XZ) [C:\Users\dogus\AppData\Local\Temp\pip-install-1uszztyz\lightgbm\build_cpp\_lightgbm.vcxproj] C:\Users\dogus\AppData\Local\Temp\pip-install-1uszztyz\lightgbm\compile\Release\lib_lightgbm.dll : fatal error LNK1120: 6 unresolved externals [C:\Users\dogus\AppData\Local\Temp\pip-install-1uszztyz\lightgbm\build_cpp\_lightgbm.vcxproj]
2 Warning(s)
7 Error(s)
Time Elapsed 00:00:16.81
最佳答案
问题是我从本指南中获得了 boost 文件,但它不是我想要的 python 安装。 https://lightgbm.readthedocs.io/en/latest/GPU-Windows.html
那个 boost 文件没有这个库/lib64-msvc-14.1我安装了boost_1_69_0-msvc-14.1-64.exe,这是我从here获得的.
我添加了 boost 参数并且它起作用了!
pip install lightgbm --install-option=--gpu --install-option="--boost-root=C:/local/boost_1_69_0" --install-option="--boost-librarydir=C:/local/boost_1_69_0/lib64-msvc-14.1"
每次尝试 pip install 时,我都会遇到以下异常。如果有人遇到同样的问题,我希望这个解决方案对他们有用。
Exception: Please install CMake first
关于python - Python 的 Lightgbm GPU 安装,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55534466/
我正在处理一组标记为 160 个组的 173k 点。我想通过合并最接近的(到 9 或 10 个组)来减少组/集群的数量。我搜索过 sklearn 或类似的库,但没有成功。 我猜它只是通过 knn 聚类
我有一个扁平数字列表,这些数字逻辑上以 3 为一组,其中每个三元组是 (number, __ignored, flag[0 or 1]),例如: [7,56,1, 8,0,0, 2,0,0, 6,1,
我正在使用 pipenv 来管理我的包。我想编写一个 python 脚本来调用另一个使用不同虚拟环境(VE)的 python 脚本。 如何运行使用 VE1 的 python 脚本 1 并调用另一个 p
假设我有一个文件 script.py 位于 path = "foo/bar/script.py"。我正在寻找一种在 Python 中通过函数 execute_script() 从我的主要 Python
这听起来像是谜语或笑话,但实际上我还没有找到这个问题的答案。 问题到底是什么? 我想运行 2 个脚本。在第一个脚本中,我调用另一个脚本,但我希望它们继续并行,而不是在两个单独的线程中。主要是我不希望第
我有一个带有 python 2.5.5 的软件。我想发送一个命令,该命令将在 python 2.7.5 中启动一个脚本,然后继续执行该脚本。 我试过用 #!python2.7.5 和http://re
我在 python 命令行(使用 python 2.7)中,并尝试运行 Python 脚本。我的操作系统是 Windows 7。我已将我的目录设置为包含我所有脚本的文件夹,使用: os.chdir("
剧透:部分解决(见最后)。 以下是使用 Python 嵌入的代码示例: #include int main(int argc, char** argv) { Py_SetPythonHome
假设我有以下列表,对应于及时的股票价格: prices = [1, 3, 7, 10, 9, 8, 5, 3, 6, 8, 12, 9, 6, 10, 13, 8, 4, 11] 我想确定以下总体上最
所以我试图在选择某个单选按钮时更改此框架的背景。 我的框架位于一个类中,并且单选按钮的功能位于该类之外。 (这样我就可以在所有其他框架上调用它们。) 问题是每当我选择单选按钮时都会出现以下错误: co
我正在尝试将字符串与 python 中的正则表达式进行比较,如下所示, #!/usr/bin/env python3 import re str1 = "Expecting property name
考虑以下原型(prototype) Boost.Python 模块,该模块从单独的 C++ 头文件中引入类“D”。 /* file: a/b.cpp */ BOOST_PYTHON_MODULE(c)
如何编写一个程序来“识别函数调用的行号?” python 检查模块提供了定位行号的选项,但是, def di(): return inspect.currentframe().f_back.f_l
我已经使用 macports 安装了 Python 2.7,并且由于我的 $PATH 变量,这就是我输入 $ python 时得到的变量。然而,virtualenv 默认使用 Python 2.6,除
我只想问如何加快 python 上的 re.search 速度。 我有一个很长的字符串行,长度为 176861(即带有一些符号的字母数字字符),我使用此函数测试了该行以进行研究: def getExe
list1= [u'%app%%General%%Council%', u'%people%', u'%people%%Regional%%Council%%Mandate%', u'%ppp%%Ge
这个问题在这里已经有了答案: Is it Pythonic to use list comprehensions for just side effects? (7 个答案) 关闭 4 个月前。 告
我想用 Python 将两个列表组合成一个列表,方法如下: a = [1,1,1,2,2,2,3,3,3,3] b= ["Sun", "is", "bright", "June","and" ,"Ju
我正在运行带有最新 Boost 发行版 (1.55.0) 的 Mac OS X 10.8.4 (Darwin 12.4.0)。我正在按照说明 here构建包含在我的发行版中的教程 Boost-Pyth
学习 Python,我正在尝试制作一个没有任何第 3 方库的网络抓取工具,这样过程对我来说并没有简化,而且我知道我在做什么。我浏览了一些在线资源,但所有这些都让我对某些事情感到困惑。 html 看起来
我是一名优秀的程序员,十分优秀!