amphibian-dev / toad

ESC Team's credit scorecard tools.
https://toad.readthedocs.io
MIT License
490 stars 176 forks source link

IOS 安装成功,但是无法导入 #117

Open SamanthaChen opened 1 year ago

SamanthaChen commented 1 year ago

environment : MacBook Pro (13-inch, M1, 2020)

pip install toad 安装成功,但是import toad 报以下错误。


ValueError Traceback (most recent call last)

in ----> 1 import toad ~/opt/anaconda3/lib/python3.8/site-packages/toad/__init__.py in 1 # from .merge import merge, DTMerge, ChiMerge, StepMerge, QuantileMerge, KMeansMerge 2 from .detector import detect ----> 3 from .metrics import KS, KS_bucket, F1 4 from .stats import quality, IV, VIF, WOE, entropy, entropy_cond, gini, gini_cond 5 from .selection import select ~/opt/anaconda3/lib/python3.8/site-packages/toad/metrics.py in 5 from sklearn.metrics import f1_score, roc_auc_score, roc_curve 6 ----> 7 from .merge import merge 8 9 from .utils import ( ~/opt/anaconda3/lib/python3.8/site-packages/toad/merge.pyx in init toad.merge() ValueError: numpy.ndarray size changed, may indicate binary incompatibility. Expected 96 from C header, got 88 from PyObject
Secbone commented 1 year ago

@SamanthaChen 可以尝试更新 numpycython 再试一下?