numbbo / coco

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

Cant install coco package #2318

Closed yedidyakfir closed 4 months ago

yedidyakfir commented 4 months 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 4 months 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 4 months ago

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

nikohansen commented 4 months 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 4 months ago

Can this be closed?