解决ModuleNotFoundError: No module named ‘scipy‘

运行程序出现如下错误:
在这里插入图片描述

这是环境中没有安装scipy包,可以使用pip或者conda命令进行安装

# pip安装
pip install scipy
# conda安装
conda install scipy

# 我一般使用pip镜像安装,更迅速
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple scipy

出现如下输出表示安装成功!!!
在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/weixin_43994864/article/details/130076308