I am trying to install pyevolve module in Windows CMD.
I tried 3 ways to install it.
pip install pyevolve
easy_install pyevolve
cd C:/xxxx/xxxx/xxxx/xxxx/
python setup.py install
The result is:
ModuleNotFoundError: No module named 'Scaling'
I look through C:/xxxx/xxxx/xxxx/xxxx/
, and I find there is a document named Scaling.py
. However, it doesn't work!
In short: the code is old and obviously intended for Python 2, but you seem trying it with Python 3. Use Python 2 for
pyevolve
.The problem is the
setup.py
importspyevolve
andpyevolve.__init__
importspyevolve.Consts
andpyevolve.Consts
importsScaling
. In Python 2 that import works because Py 2 allows relative import. But in Python 3 default import is absolute and there is no global moduleScaling
.