cannot import name ‘Inf‘ from ‘numpy‘

报错:

cannot import name 'Inf' from 'numpy'

解决方法:

pip install numpy==1.26

测试命令:

python - c "from scipy.optimize import linear_sum_assignment"
python -c "from numpy import (atleast_1d, eye, argmin, zeros, shape, squeeze,asarray, sqrt, Inf)"

猜你喜欢

转载自blog.csdn.net/jacke121/article/details/146572568
今日推荐