Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Use pyevolve in python 3

Pyevolve is usually used in python 2.7. Is there any way we can install and use pyevolve in python 3 ? I know there is another package DEAP for genetic algorithms compatible with python 3 but somehow I have to use pyevolve.

I have tries but I think it is not supported so pip install pyevolve is throwing error.

like image 714
muazfaiz Avatar asked Jul 28 '16 21:07

muazfaiz


2 Answers

You can use this PR: https://github.com/perone/Pyevolve/pull/79

The repo is here: https://github.com/BubaVV/Pyevolve

sudo pip3 install future

then inside of the module folder (after you clone/download it), run: sudo python3 setup.py install

like image 142
Lotus Avatar answered Oct 26 '22 23:10

Lotus


It is a little simpler now (Aug 2021) ...

sudo pip3 install future
git clone https://github.com/BubaVV/Pyevolve.git
cd Pyevolve; sudo python3 setup.py install

This is enough. I tested it with python3 code on both Windows Linux and MacOSX (Intel).

like image 1
Wayne Dawson Avatar answered Oct 26 '22 23:10

Wayne Dawson