Dadmatech / DadmaTools

DadmaTools is a Persian NLP tools developed by Dadmatech Co.
Apache License 2.0
179 stars 39 forks source link

The 'sklearn' PyPI package is deprecated, use 'scikit-learn' #54

Closed Saba-Heydaridoost closed 8 months ago

Saba-Heydaridoost commented 10 months ago

When installing the package, the following error occurs: The 'sklearn' PyPI package is deprecated, use 'scikit-learn'

MMahdiSetak commented 9 months ago

I encountered the same issue as previously reported. The problem arises because sklearn is deprecated and needs to be replaced with scikit-learn.

Suggested Fix

The requirements.txt file in the dadma repository should be updated to replace sklearn with scikit-learn.

Temporary Solution

In the meantime, I used the following workaround to install the package using pip:


export SKLEARN_ALLOW_DEPRECATED_SKLEARN_PACKAGE_INSTALL=True
pip install dadmatools