scikit-learn-contrib / DESlib

A Python library for dynamic classifier and ensemble selection
BSD 3-Clause "New" or "Revised" License
479 stars 106 forks source link

Run DESlib on Python 2.x.x #150

Closed raniel90 closed 5 years ago

raniel90 commented 5 years ago

DESlib requires Python '>=3' but the running Python is 2.7.15

I need to run my project on Python 2.7.15. How can i install this lib in this python version?

luizgh commented 5 years ago

Hi @raniel90. The DESlib library requires Python 3, so you would need to migrate your code to Py3 (tools such as 2to3 can help this: https://docs.python.org/2/library/2to3.html). Please note that numpy (that DESlib depends on) is ending its support to Python 2 (new numpy features are only available for Python 3 as of this year, and they will remove support next year: https://docs.scipy.org/doc/numpy-1.14.2/neps/dropping-python2.7-proposal.html), so migration to Python 3 is recommended.