ds4dm / ecole

Extensible Combinatorial Optimization Learning Environments
https://www.ecole.ai
BSD 3-Clause "New" or "Revised" License
321 stars 68 forks source link

Failed building wheel for ecole on Windows #293

Closed ZedongPeng closed 2 years ago

ZedongPeng commented 2 years ago

Describe the bug

I am trying to install ecole on Windows. But some errors came out. Does ecole support Windows now?

Setting

To Reproduce

Expected behavior

Additional context

  ERROR: Command errored out with exit status 1:
   command: 'C:\Users\pengzedong1\AppData\Local\Programs\Python\Python310\python.exe' 'C:\Users\pengzedong1\AppData\Local\Programs\Python\Python310\lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py' build_wheel 'C:\Users\PENGZE~1\AppData\Local\Temp\tmph0l3lk1p'
       cwd: C:\Users\pengzedong1\AppData\Local\Temp\pip-install-o42v7h8a\ecole_1553332495be429c8054a46ca8652607
  Complete output (319 lines):
  Not searching for unused variables given on the command line.
  -- The CXX compiler identification is MSVC 19.30.30705.0
  -- Detecting CXX compiler ABI info
  -- Detecting CXX compiler ABI info - failed
  -- Check for working CXX compiler: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.30.30705/bin/Hostx86/x86/cl.exe
  -- Check for working CXX compiler: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.30.30705/bin/Hostx86/x86/cl.exe - broken
  CMake Error at C:/Users/pengzedong1/AppData/Local/Temp/pip-build-env-w4nd6j98/overlay/Lib/site-packages/cmake/data/share/cmake-3.22/Modules/CMakeTestCXXCompiler.cmake:62 (message):
    The C++ compiler

      "C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.30.30705/bin/Hostx86/x86/cl.exe"

    is not able to compile a simple test program.

    It fails with the following output:

      Change Dir: C:/Users/pengzedong1/AppData/Local/Temp/pip-install-o42v7h8a/ecole_1553332495be429c8054a46ca8652607/_cmake_test_compile/build/CMakeFiles/CMakeTmp

      Run Build Command(s):C:/Users/pengzedong1/AppData/Local/Temp/pip-build-env-w4nd6j98/overlay/Scripts/ninja.exe cmTC_bd531 && [1/2] Building CXX object CMakeFiles\cmTC_bd531.dir\testCXXCompiler.cxx.obj
      [2/2] Linking CXX executable cmTC_bd531.exe
      FAILED: cmTC_bd531.exe
      cmd.exe /C "cd . && C:\Users\pengzedong1\AppData\Local\Temp\pip-build-env-w4nd6j98\overlay\Lib\site-packages\cmake\data\bin\cmake.exe -E vs_link_exe --intdir=CMakeFiles\cmTC_bd531.dir --rc=rc --mt=CMAKE_MT-NOTFOUND --manifests  -- C:\PROGRA~1\MICROS~4\2022\COMMUN~1\VC\Tools\MSVC\1430~1.307\bin\Hostx86\x86\link.exe /nologo CMakeFiles\cmTC_bd531.dir\testCXXCompiler.cxx.obj  /out:cmTC_bd531.exe /implib:cmTC_bd531.lib /pdb:cmTC_bd531.pdb /version:0.0 /machine:X86  /debug /INCREMENTAL /subsystem:console  kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib && cd ."
ZedongPeng commented 2 years ago

Or, is there any binary wheel file of ecole for Windows?

AntoinePrv commented 2 years ago

Hi @ZedongPeng , We currently do not support Windows. This is in our ToDo list (#116).