I get an error when importing base from deap

445 views Asked by At

When I try to import base from deap:

from deap import creator, base, tools

Traceback (most recent call last):

 File ~\AppData\Roaming\Python\Python310\site-packages\IPython\core\interactiveshell.py:3369 in run_code
    exec(code_obj, self.user_global_ns, self.user_ns)

  Input In [2] in <cell line: 1>
    from deap import creator, base, tools

  File ~\AppData\Roaming\Python\Python310\site-packages\deap\base.py:192
    raise TypeError, ("Both weights and assigned values must be a "
                   ^
SyntaxError: invalid syntax
0

There are 0 answers