通过CMD中的pip install toad总失败,原因是有些包不符合toad0.1.5的安装要求,但升级那些包其他的依赖要变,所以只能通过whl安装了,首先进入网站https://pypi.org/project/toad/0.1.3/#files,其次在CMD中确认python的版本(python -V)为3.8.5,所以下载对应的版本,在CMD中输入pip install D:\whl\toad-0.1.3-cp38-cp38-win_amd64.whl即可
因为numpy版本不对,运行分箱的时候报错,所以更新numpy版本,首先pip show numpy看到版本为1.19.2,更新到1.23.0,运行代码:
pip install numpy==1.23.0 -i https://pypi.tuna.tsinghua.edu.cn/simple
toad详细使用文档查询https://toad.readthedocs.io/en/latest/tutorial_chinese.html
pip install scorecardpy==0.1.9.7 -i https://pypi.tuna.tsinghua.edu.cn/simple