I am running a python script and I get this error:
Intel MKL FATAL ERROR: Cannot load libmkl_avx2.so or libmkl_def.so.
Both files are present
All the solutions provided above did not work for me, but I found a good compromise:
for someone who has the same error and want's to keep Anaconda on his computer, and steel use mkl for (numpy and scipy) good process performance, the solution I propose:
Edit your .bashrc file.
Look for something like export PATH="/home/anaconda2/bin:$PATH" in the file.
Put a # at the beginning to comment it from the script:
#export PATH="/home/anaconda2/bin:$PATH"
Open a new terminal and you should be running the base python installation.
It worked for me, hope it will be helpfull.