I am trying to import a function from scipy to calculate the correlation coefficient
from scipy.stats.stats import pearsonr When you try to execute the code, an error message is displayed
ImportError: DLL load failed: Не найден указанный модуль The same thing happens if I try to import a module of the same name from a package where there is a module with the name as it is a package. So, the interpolate module is stored in the interpolate folder, as a result of which this command
from scipy.interpolate import interp1d Causes the same error. If there are no modules of the same name in the park, then everything works. For example
from scipy.cluster import vq And in another library such problems do not arise even if there is a module of the same name in the folder.
from openpyxl.workbook import workbook Tried to rename the module name from stats to stat, but then an error appears
ImportError: No module named 'scipy.stats.stats' Python version anaconda 3.5.0, windows 8.1Х64