当前位置:网站首页>No module named ‘PyEMD‘ ;使用plt.figure()TypeError: ‘module‘ object is not callable
No module named ‘PyEMD‘ ;使用plt.figure()TypeError: ‘module‘ object is not callable
2022-06-28 20:03:00 【seven_不是赛文】
1, No module named ‘PyEMD‘
from PyEMD import EMD
eemd = EMD()
imf = eemd(data[target].values)
print(imf.shape)
可能错误原因:
①pip install 错了
第⼀次导⼊可能会报错,没有这个PyEMD这个包,然后⼀般我们就会去安装输⼊ :pip install PyEMD这是错的
正确:pip install EMD-signa
②还是会继续找不到该模块
因为我们的下载的模块名和我们代码import的不一样,所以找不到。
我们下载了PyEMD之后,在我们的文件夹里面他的文件名是:pyemd
所以我们将文件夹的名字改成PyEMD就可以啦
方法:我们只需要取anaconda里面找到安装库的位置
首先找到自己安装的Anaconda3的位置,
打开 envs文件夹,里面是你安装的所有虚拟环境。
打开一个你想看的虚拟环境文件夹。
打开Lib,再打开site-packages
这里就是该虚拟环境内,所安装的所有库了。
或许还是不行,我在我的windows下载pyemd上面两个步骤就ok了。但是在Linus系统上就一直不ok。
然后,看了其他博客。所还要下载这两个包:numpy和scipy工具包
所以,我重新删掉了一开始下载的东西。先下载pip install msgpack-python;pip install msgpack
然后pip install EMD-signal
再对应改下文件名。
2,TypeError: ‘module’ object is not callable
改成这个代码import matplotlib.pyplot as plt
边栏推荐
- April 10, 2022 -- take the first step with C -- use C from Net class library call method (not understood)
- 2022 t elevator repair test question bank simulation test platform operation
- How to understand the usability of cloud native databases?
- odoo15 Module operations are not possible at this time, please try again later or contact your syste
- Troubleshooting of pyinstaller failed to pack pikepdf
- 输入分隔符
- 集合之ArrayList
- Markdown Mermaid Grass (1) Introduction à Mermaid
- Why does next() in iterator need to be forcibly converted?
- JVM memory structure
猜你喜欢

ArrayList of collection

电子科大(申恒涛团队)&京东AI(梅涛团队)提出用于视频问答的结构化双流注意网络,性能SOTA!优于基于双视频表示的方法!...

easypoi

2022 welder (elementary) special operation certificate examination question bank and answers

rsync远程同步

easypoi

2022年T电梯修理考试题库模拟考试平台操作

计网 | 一文解析TCP协议所有知识点

Severity code description project file line suppress status error lnk2038 detected a mismatch of "runtimelibrary": the value "md\u dynamicrelease" does not match the value "mdd\u dynamicde"

Day88. qiniu cloud: upload house source pictures and user avatars
随机推荐
rsync远程同步
wc命令的使用
关键字long
Day88.七牛云: 房源图片、用户头像上传
怎么理解云原生数据库的快速迭代?
100人成绩的平均
Bluecmsv1.6 code audit
严重性 代码 说明 项目 文件 行 禁止显示状态 错误 LNK2038 检测到“RuntimeLibrary”的不匹配项: 值“MD_DynamicRelease”不匹配值“MDd_DynamicDe
2022 P cylinder filling test exercises and online simulation test
5G NR MBS架构介绍
QSP read label configuration error
各种类型长
Head, tail view file
Class loading mechanism and object creation
Design of secsha system
How to obtain the coordinates of the aircraft passing through both ends of the radar
How strong a mathematical foundation does deep learning need?
输入和输出实型数据
Internship: term understanding and handwriting interface
5g NR MBS architecture introduction