Skip to main content
 首页 » 编程设计

Python 3 导入错误 : cannot import name 'maxentropy'

2025年05月04日22itcoder

我正在使用 python 3.5.3 和

from scipy import maxentropy 

我收到错误:ImportError: cannot import name 'maxentropy' 请建议错误的解决方案。谢谢

请您参考如下方法:

这是我找到的here :

The scipy.maxentropy module, which was deprecated in the 0.10.0 release, has been removed. Logistic regression in scikits.learn is a good and modern alternative for this functionality.

希望对你有帮助