roshan-research / hazm

Persian NLP Toolkit
https://www.roshan-ai.ir/hazm/
MIT License
1.19k stars 180 forks source link

ImportError: cannot import name 'triu' from 'scipy.linalg' #336

Open MirS0bhan opened 3 months ago

MirS0bhan commented 3 months ago

سلام سیستم عامل آرچه و پایتون ۳.۱۱ نصب کردم همراه ۱۲ بعد نصب hazm این ارور میده بهم

image

erfanium commented 3 months ago

same here

negjafari commented 3 months ago

The error occurs because hazm uses numpy version 1.24.3, which is incompatible with the version of scipy you are using. You can resolve this error by installing numpy version 1.24.3 along with scipy version 1.11.4.