Open BernardOng opened 7 years ago
Hi! Many people have reported having problems with this library in an Anaconda environment. How did you install sklearn-deap?
I installed per instruction as follows (I used Windows 10 and Anaconda, 2x on main, 3x on env):
pip install sklearn-deap
I just also tried installing from a cloned source under git and it still created the same issue. I tried under Python v2.7.13 and Python v3.6.2 - same results. Is there a way around this?
Maybe you can use a virtualenv environment instead of using anaconda?
Using the exact code sample, when I ran the code, I get an import error.
Traceback (most recent call last): File "test.py", line 18, in
from evolutionary_search import EvolutionaryAlgorithmSearchCV
File "D:\Anaconda2\lib\site-packages\evolutionary_search__init__.py", line 1, in
from .cv import *
File "D:\Anaconda2\lib\site-packages\evolutionary_search\cv.py", line 6, in
from deap import base, creator, tools, algorithms
File "D:\Python\zillow\deap.py", line 25, in
from evolutionary_search import EvolutionaryAlgorithmSearchCV
ImportError: cannot import name EvolutionaryAlgorithmSearchCV