I'm not a professional, but I had the issue with importing of scipy.integrate package even after successful installing of scipy package via 'pip install scipy
'.
The Error was '
No module named 'scipy.special
'.
I randomly solved the issue, maybe my solution will be applicable in your case.
Briefly:
I use Python3 and for installing packages it is better to use 'pip3
' command, not 'pip
'.
More details:
So initially, I had used 'pip install scipy
' and this didn't work.
When I tried to use 'pip3 install scipy
', there was a message saying that all the requirement are satisfied, but scipy.integrate still was unavailable with the same Error.
When I tried to uninstall scipy via 'pip uninstall scipy
' there was a message that scipy is not installed (but actually, it still was installed).
So I went to 'C:\Users\{username.username}\AppData\Local\Programs\Python\Python310\Lib\site-packages
' and deleted the folder named 'scipy
'.
Thereafter, I reran the command 'pip3 install scipy
' and everything was installed successfully and the following commands worked well in my Jupyter Notebook:
'
import numpy as np
import scipy
import scipy.integrate as integrate
import scipy.special as special
'
The following functions became available: quad, dblquad, tplquad, odeint, ode
via the:
from scipy.integrate import quad, dblquad, tplquad
and
from scipy.integrate import odeint, ode