简体   繁体   English

模块'scipy.signal'没有属性'stft'

[英]module 'scipy.signal' has no attribute 'stft'

According to docs, there is a 根据文档,有一个

scipy.signal.stft

but when trying to access that function I get the error from the title. 但是当试图访问该功能时,我从标题中得到错误。 The function is documented here . 此功能记录在此处

Also, scip.signal.istft does not exist either. 此外,scip.signal.istft也不存在。 Any suggestions? 有什么建议么?

You need to check your module version, you van refer to this post . 您需要检查您的模块版本,您可以参考这篇文章

stft func is added in the SciPy 0.19.0 , check this post to upgrade your module to the newsest version. SciPy 0.19.0中添加了stft func,请查看此文章以将模块升级到最新版本。

You need to upgrade to v 0.19.0. 您需要升级到v 0.19.0。 I tried many ways to do that but always got 0.18 instead. 我尝试了很多方法,但总是得到0.18。 So to upgrade to 0.19.0 just simply do 所以要升级到0.19.0就这么简单

pip install scipy==0.19.0

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM