[PYTHON] About import error of numpy and scipy in anaconda

About the environment and errors

environment

windows 8.1 64bit Anacoanda 4.2.0 Python3.5 version 64bit

About the error

If you import Numpy or Scipy after the installation is completed normally without removing the check mark at the time of installation About the bug that import of numpy and scipy fails in anaconda And it failed as well.

I tried deleting mkl_intel_thread.dll of system32 referring to the above article, but the error did not go away. I tried rebooting and reinstalling, but the import still fails.

Cause

Using Dependency Walker as in the reference article Open "Anaconda3 \ Lib \ site-packages \ numpy \ core \ multiarray.pyd" and check Not just "windows \ system32 \ mkl_intel_thread.dll" It seems that "windows \ system32 \ mkl_core.dll" is also useless.

solution

According to the reference article, mkl_intel_thread.dll is located in "Anaconda3 \ Library \ bin" When I looked for it, mkl_core.dll was also in the same location.

Therefore "windows\system32\mkl_intel_thread.dll" "windows\system32\mkl_core.dll" Above two files

"Anaconda3\Library\bin\mkl_intel_thread.dll" "Anaconda3\Library\bin\mkl_core.dll"

Overwrite with.

result

In this environment, both Numpy and Scipy were successfully imported.

Impressions

Anaconda is convenient for beginners to build an environment, but when an error occurs, I feel that there is little information that can be used as a reference (understandable at my own level).

Postscript

Today (January 28, 2017) I tried importing matplotlib It seems that an error occurred in "windows \ system32 \ mkl_avx.dll" or "windows \ system32 \ mkl_def.dll" and it failed.

"Anaconda3 \ Library \ bin \ mkl_avx.dll" and "Anaconda3 \ Library \ bin \ mkl_def.dll" Overwriting the above two files of system32 with these two files, or deleting the two of system32 solved the problem.

In a similar error, if you overwrite the problematic file with the file with the same name in the "Anaconda \ Library \ bin" folder, or delete the file with the same name in system32, it will refer to the file in anaconda. Seems to be resolved.

Recommended Posts

About import error of numpy and scipy in anaconda
About import error of PyQt5.QtWidgets (Anaconda)
About the bug that anaconda fails to import numpy and scipy
Error in ordinal number when importing Numpy in Anaconda environment of Windows
Coexistence of Anaconda 2 and Anaconda 3 in Jupyter + Bonus (Julia)
About cumulative assignment of lists and numpy arrays
About all of numpy
About the uncluttered arrangement in the import order of flake8
Personal notes about the integration of vscode and anaconda
About all of numpy (2nd)
About Numpy array and asarray
Put numpy scipy etc. in virtualenv of Ubuntu 12.04 LTS Server
See the power of speeding up with NumPy and SciPy
I get "sanity check" and "No module" errors in import numpy
Installation of SciPy and matplotlib (Python)
About dtypes in Python and Cython
About Python, from and import, as
Fix setuptools missing error in anaconda
The story of an error in PyOCR
Import of japandas with pandas 1.0 and above
About sensor_mode and angle of view of picamera
pix2 pix tensorflow2 Record of trial and error
The result of installing python in Anaconda
Screenshots of Megalodon in selenium and Chrome.
Separation of design and data in matplotlib
Summary of modules and classes in Python-TensorFlow2-
Module import and exception handling in python
Project Euler # 1 "Multiples of 3 and 5" in Python
Import Error in Python3: No module named'xxxxx'
Talking about the features that pandas and I were in charge of in the project
About import
About numpy
About import
About _ and __
Install and run Python3.5 + NumPy + SciPy on Windows 10
About left justification and right justification of Kivy Label
About the behavior of copy, deepcopy and numpy.copy
Summary of how to import files in Python 3
About Django's Model.save () behavior and MySQL deadlock error
[Python] Swapping rows and columns in Numpy data
Think about depth-priority and width-priority searches in Python
About the difference between "==" and "is" in python
Install Python 3.5.1 + numpy + scipy + α in Windows environment
DISPLAY error in wxPython (and traitsui) on vscode
Header shifts in read_csv () and read_table () of Pandas
[Note] About the role of underscore "_" in Python
About the behavior of Model.get_or_create () of peewee in Python
Could not import C error in GO environment
About the * (asterisk) argument of python (and itertools.starmap)
About shallow and deep copies of Python / Ruby
Error running Jupyter Notebook in Anaconda virtual environment
Date of Address already in use error in Flask
Explanation of edit distance and implementation in Python
About problems and solutions of OpenPyXL (Ver 3.0 version)
About depth in Qiskit (normal circuit and QuantumVolume)
A story of trial and error trying to create a dynamic user group in Slack