参考文档1:
https://blog.csdn.net/weixin_43857827/article/details/99989825?depth_1-utm_source=distribute.pc_relevant.none-task&utm_source=distribute.pc_relevant.none-task
下载压缩包后,将C:\ProgramData\Anaconda3\添加到环境系统变量,执行python setup.py install,在中途打开网页,一直未下载成功;
参考文档2:
https://blog.csdn.net/z2539329562/article/details/98756330
在windows powershell(管理员),cd到C:\ProgramData\Anaconda3\Scripts目录下执行,安装中途出现pip版本升级,在完成升级后,仍然显示该错误
参考文档3:
https://blog.csdn.net/wo_kao_a_/article/details/102863889
在anaconda powershell prompt执行第一种方案conda install pyemd后显示HTTP…ERROR
重新执行方案1;同时在windows powershell(管理员),cd到C:\ProgramData\Anaconda3\Scripts目录下执行方案2,pip install pymed==0.5.1显示没有对应的版本,将0.5.1改成0.8.9
结果发现两个窗口均提示安装成功,后通过参考文档1中的代码进行验证,验证结果成功:
打开spyder输入
import numpy as np
from PyEMD import EMD, Visualisation
t = np.arange(0, 3, 0.01)
S = np.sin(13*t + 0.2*t**1.4) - np.cos(3*t)
# Extract imfs and residue
# In case of EMD
emd = EMD()
emd.emd(S)
imfs, res = emd.get_imfs_and_residue()
# In general:
#components = EEMD()(S)
#imfs, res = components[:-1], components[-1]
vis = Visualisation()
vis.plot_imfs(imfs=imfs, residue=res, t=t, include_residue=True)
vis.plot_instant_freq(t, imfs=imfs)
vis.show()
结果: