import scipy.stats ImportError: DLL load failed while importing_ufuncs: The specified procedure could not be found
You can solve the problem by:
- reinstall scipy
pip install --user --force-reinstall scipy
- Check your environment (make sure your Python environment is set up successfully and all dependencies are installed)
python -c "import scipy; print(scipy.__version__)"
# 这将打印成功安装的scipy的版本,如果存在问题,说明python 环境存在问题
- Check your PATH (make sure the directory where scipy is installed is included in your system's PATH environment variable)
echo %PATH%
# 这将打印包含在系统的PATH环境变量中的目录
# 查找安装scipy的目录,并确保其中包含scipy
- Check your dependencies (make sure all dependencies required by scipy are installed)
pip show scipy
# 这将向您显示有关scipy包的信息,包括它的依赖项列表
# 请确保所有这些依赖项都已安装并且是最新的
I solved the problem perfectly through the first method~