You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Attempting to pip install lexnlp currently pulls 2.1.0 from pypi. This fails to install on Win10/Python 3.9 and apparently M1 MacBooks. Downloading the current master and installing from zip encounters similar issues.
The issue is scikit learn version 0.23.1 failing to install due to changes made in numpy, resulting in the below error even when a sufficient numpy is installed.
Importing the numpy c-extensions failed.
[...]
ImportError: numpy is not installed.
scikit-learn requires numpy >= 1.13.3.
Installation instructions are available on the scikit-learn website: http://scikit-learn.org/stable/install.html
Was able to workaround and run two test examples in the docs, but havent fully tested, by installing current master with requirements set to the following in setup.py
Can I suggest using less rigid requirements? This package is often going to be use as part of a workflow, and rigidly pinning not only causes install issues when those deps start to age (sklearn 0.23.1 is 2 years old) but it also unnecessarily forces your package to be the driver of install requirements for the system its a part of.
EDIT: This doesnt work as there are breaking changes from sklearn 0.23.1 -> 0.24, in particular when loading the pickle from addresses.py sklearn 0.24 throws the error: ModuleNotFoundError: No module named 'sklearn.tree.tree'
The text was updated successfully, but these errors were encountered:
I'm having similar issues. A related problem is LexNlp doesn't play nice with other nlp packages due to the old versions of numpy required by all but the newest LexNLP releases. The newer numpy version in latest LexNLP release is compatible with far more other packages, but I can't get it to install due to the sklearn==0.23.1 dependency, as noted by @CaseGuide.
Attempting to
pip install lexnlp
currently pulls 2.1.0 from pypi. This fails to install on Win10/Python 3.9 and apparently M1 MacBooks. Downloading the current master and installing from zip encounters similar issues.The issue is scikit learn version 0.23.1 failing to install due to changes made in numpy, resulting in the below error even when a sufficient numpy is installed.
Was able to workaround and run two test examples in the docs, but havent fully tested, by installing current master with requirements set to the following in setup.py
Can I suggest using less rigid requirements? This package is often going to be use as part of a workflow, and rigidly pinning not only causes install issues when those deps start to age (sklearn 0.23.1 is 2 years old) but it also unnecessarily forces your package to be the driver of install requirements for the system its a part of.
EDIT: This doesnt work as there are breaking changes from sklearn 0.23.1 -> 0.24, in particular when loading the pickle from addresses.py sklearn 0.24 throws the error:
ModuleNotFoundError: No module named 'sklearn.tree.tree'
The text was updated successfully, but these errors were encountered: