numbbo / coco

Numerical Black-Box Optimization Benchmarking Framework
https://numbbo.github.io/coco
Other
259 stars 86 forks source link

Cant install coco package #2318

Closed yedidyakfir closed 1 month ago

yedidyakfir commented 1 month ago

Hi, I am trying to install the coco package, following the guide in the readme.md file. I run python do.py run-python command, however I get the following error

ERROR: return value=1 Traceback (most recent call last): File "C:\Users\aim\Desktop\work\new\coco\code-experiments\build\python\example_experiment.py", line 46, in import cocoex ModuleNotFoundError: No module named 'cocoex'

Your System (please complete the following information when it seems relevant):

nikohansen commented 1 month ago

By now, there is a simpler way to install cocoex, namely by

pip install coco-experiment

Remark also that the example_experiment.py is deprecated (as mentioned in the docstring). Rather use

https://github.com/numbbo/coco/blob/master/code-experiments/build/python/example/example_experiment_simple.py

or

https://github.com/numbbo/coco/blob/master/code-experiments/build/python/example/example_experiment_complete.py

yedidyakfir commented 1 month ago

And how would I go about install previous versions (specifically version v2.6.2)

nikohansen commented 1 month ago

To all I know

python do.py run-python

The error from the OP is probably due to running example_experiment.py with a different python installation than do.py?

nikohansen commented 1 month ago

Can this be closed?