ModuleNotFoundError: No module named 'Scaling'

1.5k views Asked by At

I am trying to install pyevolve module in Windows CMD.

I tried 3 ways to install it.

  1. pip install pyevolve

  2. easy_install pyevolve

  3. 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!

1

There are 1 answers

4
phd On

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 imports pyevolve and pyevolve.__init__ imports pyevolve.Consts and pyevolve.Consts imports Scaling. 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 module Scaling.