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

  • Try installing from here: lfd.uci.edu/~gohlke/pythonlibs/#scipy - gil9red
  • @gil9red sorry for the late reply, did not notice your comment before. I tried to install the module from this site, but an error appeared: Package missing in current win-64 channels. I came as a result to the fact that I installed scipy on the base distribution of python. Everything works there. - vadim.g.yu
  • those. Is the problem solved? Then put a decision in response :) - gil9red
  • @ gil9red The problem is that scipy does not work normally on anaconda. The correlation coefficient, of course, can be calculated by other means. - vadim.g.yu

0