ds4dm / ecole

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

install error #317

Open zengqg opened 2 years ago

zengqg commented 2 years ago

Describe the bug

When I install ecole from source codes (python setup.py install, installation using pip always get timeout error for installing the dependency), I get the error:

CMake Error at /usr/share/cmake-3.16/Modules/FindPackageHandleStandardArgs.cmake:146 (message): Could NOT find Python (missing: Python_LIBRARIES Interpreter Development NumPy) Call Stack (most recent call first): /usr/share/cmake-3.16/Modules/FindPackageHandleStandardArgs.cmake:393 (_FPHSA_FAILURE_MESSAGE) /usr/share/cmake-3.16/Modules/FindPython.cmake:347 (find_package_handle_standard_args) python/extension-helper/dependencies/public.cmake:1 (find_package) python/extension-helper/CMakeLists.txt:2 (include)

Setting

AntoinePrv commented 2 years ago

Basically CMake is telling you it cannot find Python. This should be set properly in setup.py by scikit-build.

I do not recommend using python setup.py install, pip is more appropriate. You cannot install ecole without the dependencies, but if you know you already have everything, you can use pip with pip install --no-deps --no-build-isolation [...]

xiaofeishu141220 commented 1 year ago

Hi! Dear author, does the Ecole installation need to match a specific Scip version? Currently, I have Scip-6.0.1, Soplex-4.0.1, and Pyscipopt-2.1.5 installed as a source build. is it possible to install Ecole-0.8.1 directly?