neat-python icon indicating copy to clipboard operation
neat-python copied to clipboard

Unable to get visualize.py to work with the example code given in evolve-feedforward.py

Open crsas opened this issue 2 years ago • 1 comments

I attempt to run the code derived from evolve-feedforward.py as is, installing the visualize module on Pycharm, using neat-python 0.92, only to be met with AttributeError: module 'visualize' has no attribute 'net_draw'. I do not know how to fix this error, and have tried running visualize.py separately, but with no result other than a 0 error exit code.

Please help!

crsas avatar Mar 02 '23 22:03 crsas

Hi, I ran into the same issue and found a solution, so here it goes: i had to copy the content of visualize.py ( https://raw.githubusercontent.com/CodeReclaimers/neat-python/master/examples/xor/visualize.py ) to the working directory and pip install graphviz then it worked :)

phpwutz avatar Mar 19 '23 23:03 phpwutz