当前位置:网站首页>No module named ‘PyEMD‘ ; Use plt figure()TypeError: ‘module‘ object is not callable
No module named ‘PyEMD‘ ; Use plt figure()TypeError: ‘module‘ object is not callable
2022-06-28 20:20:00 【seven_ Not Severn】
1, No module named ‘PyEMD‘
from PyEMD import EMD
eemd = EMD()
imf = eemd(data[target].values)
print(imf.shape)
Maybe the wrong reason :
①pip install In the wrong
The first ⼀ Secondary derivative ⼊ There may be a mistake , Without this PyEMD This package , then ⼀ Then we will install the transmission ⼊ :pip install PyEMD This is wrong
correct :pip install EMD-signa
② It will continue to fail to find the module
Because our downloaded module name and our code import Is not the same , So we can't find it .
We downloaded PyEMD after , In our folder, his file name is :pyemd
So we changed the name of the folder to PyEMD That's all right.
Method : We just need to take anaconda Find the location of the installation library
First find your own installation Anaconda3 The location of ,
open envs Folder , Inside are all the virtual environments you installed .
Open a virtual environment folder you want to see .
open Lib, And on again site-packages
Here is the virtual environment , All libraries installed .
Maybe not , I'm in my windows download pyemd The above two steps are ok 了 . But in Linus The system has not ok.
then , Read other blogs . So I have to download these two packages :numpy and scipy tool kit
therefore , I re deleted what I downloaded at the beginning . To download pip install msgpack-python;pip install msgpack
then pip install EMD-signal
Change the file name accordingly .
2,TypeError: ‘module’ object is not callable
Change to this code import matplotlib.pyplot as plt
边栏推荐
- 3. integrate listener
- No module named ‘PyEMD‘ ;使用plt.figure()TypeError: ‘module‘ object is not callable
- Jenkins pipeline's handling of job parameters
- Quaternion quaternion and Euler angle transformation in ROS
- 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"
- 字符和整数
- 输入和输出实型数据
- 2788.Cifera
- Comparisonchain file name sort
- 输入分隔符
猜你喜欢

28 rounds of interviews with 10 companies in two and a half years

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

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

bluecmsv1.6代码审计
![return new int[]{i + 1, mid + 1}; return {i + 1, mid + 1};](/img/6a/45a4494276deba72ef9833818229f5.png)
return new int[]{i + 1, mid + 1}; return {i + 1, mid + 1};

方 差 分 析

2022 P cylinder filling test exercises and online simulation test

Shell reads the value of the JSON file

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"

ArrayList of collection
随机推荐
iterator中的next()为什么要强转?
新形势下的SaaS销售升级|ToB大师课
Quaternion quaternion and Euler angle Transformation in Ros
Resilience4j retry source code analysis and retry index collection
JSP to get the value in the session
Input and output real data
Compression and decompression commands
SaaS sales upgrade under the new situation | tob Master Course
Lecture 30 linear algebra Lecture 4 linear equations
Win 10 create a gin framework project
CSDN salary increase technology selenium automated test stack summary
wc命令的使用
员工薪资管理系统
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"
2022 tea master (intermediate) examination simulated 100 questions and simulated examination
Server configuration estimation of core IOT Bluetooth AOA positioning system
Software supply chain security risk guide for enterprise digitalization and it executives
How to obtain the coordinates of the aircraft passing through both ends of the radar
2788.Cifera
ROS中quaternion四元数和欧拉角转换