felix-last/kmeans_smote

Installation for Python2 fails

Closed this issue · 2 comments

It seems that the latest version is not compatible with Python2:

image

Clearly, Python2's open() function does not have the argument 'encoding', which causes the error in installation. Is there any previous version of the library compatible with python2?

Got it. That argument needed to be removed. For others encountering this issue:

  1. clone the repo
  2. Go to setup.py and remove the 'encoding' argument from the line shown in the image above.
  3. pip install .
    and you are done!

Glad you figured it out. Thank you for sharing your advice with others!