'Python cannot import name from some scipy.signal methods
import numpy as np
from scipy.integrate import odeint
from scipy.signal import find_peaks
The third line triggers the following error:
ImportError: cannot import name find_peaks
What is going on here? I haven't made any changes to the scipy package that I am aware of. Also it is worth noting that just importing scipy.signal does not produce an error.
Solution 1:[1]
I just had to reinstall scipy and it worked on Mac OS with M1 and Python 3.9
pip uninstall scipy
and then
pip install scipy
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Gerard |
