Python 未找到scipy最小二乘函数

Python 未找到scipy最小二乘函数,python,scipy,least-squares,Python,Scipy,Least Squares,我一直按照这个指南对我的数据进行最小二乘拟合,但我无法导入最小二乘函数。我用的是windows,还有蟒蛇。我收到错误ImportError:当尝试使用“from scipy.optimize import least_squares”行导入函数时,无法导入名称“least_squares”。如果能帮上忙,我将不胜感激。多谢各位 在scipy的0.17.0版中添加了最小二乘法。你们有什么版本?您可以通过运行import-scipy进行检查;打印(scipy.\uuuuuuuuuuuuuuuuuuu

我一直按照这个指南对我的数据进行最小二乘拟合,但我无法导入最小二乘函数。我用的是windows,还有蟒蛇。我收到错误ImportError:当尝试使用“from scipy.optimize import least_squares”行导入函数时,无法导入名称“least_squares”。如果能帮上忙,我将不胜感激。多谢各位

在scipy的0.17.0版中添加了
最小二乘法。你们有什么版本?您可以通过运行
import-scipy进行检查;打印(scipy.\uuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuu版本)
谢谢,这解决了问题!