geatpy icon indicating copy to clipboard operation
geatpy copied to clipboard

ImportError: cannot import name comb

Open PeterFanFan opened this issue 4 years ago • 1 comments

Traceback (most recent call last): File "D:/objectselect/demo/soea_demo/soea_demo1/main.py", line 2, in import geatpy as ea # import geatpy File "D:\Anaconda\envs\py3\lib\site-packages\geatpy-2.6.0-py3.6.egg\geatpy_init_.py", line 31, in from crtup import crtup File "core\crtup.py", line 3, in init crtup ImportError: cannot import name comb

PeterFanFan avatar Apr 16 '21 08:04 PeterFanFan

It's a problem of your scipy.

Reinstall the package "scipy" until you can run the following command successfully:

from scipy.special import comb

geatpy-dev avatar Apr 16 '21 08:04 geatpy-dev