cannot import name ‘softmax‘ from ‘scipy.special‘

报错代码:

# from scipy.special import softmax

打印版本号

import scipy


print(scipy.__version__)

发现1.1.0版本报这个错

cannot import name 'softmax' from 'scipy.special'

但是1.5.2没报错。

解决方法:

pip install scipy -U

新版1.7.3

猜你喜欢

转载自blog.csdn.net/jacke121/article/details/121542970#comments_25883614
今日推荐