Solve ModuleNotFoundError: No module named 'scipy'

The following error occurs when running the program:
insert image description here

This is because the scipy package is not installed in the environment, you can use the pip or conda command to install it

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

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

The following output appears to indicate that the installation is successful! ! !
insert image description here

Guess you like

Origin blog.csdn.net/weixin_43994864/article/details/130076308