问题场景:
conda 环境下的python 包管理,python 版本3.8.3
现项目需要使用到sklearn库
问题描述:
调用sklearn库需要安装scikit-learn
按照网上的scikit-learn的依赖库安装顺序,安装完一下后再使用conda install scikit-learn
- Python (>= 3.5),
- NumPy (>= 1.11.0),
- SciPy (>= 0.17.0),
调用库函数时出现ImportError: DLL load failed while importing _arpack: The specified procedure could not be found.
原因分析:
报错代码段出现到scipy 库的追溯,因此和scipy的安装有关
from scipy.sparse.linalg import LinearOperator
解决方案:
使用conda uninstall scipy 然后重新安装依然报错,