Python calls pywt and reports an error module 'pywt' has no attribute 'wavedec'

Problem Description

1. An error is reported when calling pywt module 'pywt' has no attribute 'wavedec'
2. After installing pywt, the pywt library cannot be found in pycharm.

Solution

1. Open pycharm and check the path where the interpreter is located in the lower right corner. For example, the path where my interpreter is located is E:\ProgramData\Anaconda3\python.exe, then my library path is E:\ProgramData\Anaconda3\Lib\ site-packages.
insert image description here
2. After finding the library path, enter the cmd terminal and enter the directory of the library path. If pywt has been installed, enter the following command to uninstall it:

pip3 uninstall pywt

If pywt has not been installed, enter the following commands in sequence
(1) pip3 install PyWavelets
(The full name of pywt is PyWavelets)
(2) conda install -c conda-forge pywavelets(This command is used to download pywt and needs some other dependent packages, such as "wavedec")
Solve it! ! !

Guess you like

Origin blog.csdn.net/weixin_44769034/article/details/124153396