title: Division error in Python Pandas: libmkl_vml_avx.so: undefined symbol: mkl_serv_getenv
body: <p>I just moved from Python 2.7 to 3.5. Recently I have been working with the code below</p>
  
  <pre><code>import pandas as pd
  import os
  import glob as g
  import numpy as np
  
  archivos = g.glob('/compartido/FICHEROS_IC/MODELOS/archivosXML/ConvertidosXML/*_LEITURAS_*.csv')
  vuelta=0
  
  for archiv in archivos:
      a=os.path.basename(archiv) 
      nomarch= os.path.splitext(a)[0] 
      nombre = os.path.splitext(archiv)[0] 
  
      df = pd.read_csv(archiv, sep=",") 
      d = pd.to_datetime(df['DATA_LEITURA'], format="%Y%m%d")
      df['FECHA_LECTURA'] = d.dt.date
      del df['DATA_LEITURA']       
  
      order = df.sort_values(['NR_CPE','FECHA_LECTURA', 'HORA_LEITURA'], ascending=True)    
  
      grouped = order.groupby('NR_CPE')
  
      order["CONSUMO"]= order.VALOR_LEITURA - order.groupby(['NR_CPE'])['VALOR_LEITURA'].shift(1).fillna(0)
      order["DIAS"]= order.FECHA_LECTURA - order.groupby(['NR_CPE'])['FECHA_LECTURA'].shift(1)
  
      order["DIAS"]= order["DIAS"].replace('NaT',0)
      order["DIAS"]= order["DIAS"].astype('timedelta64[D]')
  
      numday = grouped['DIAS'].size() &gt; 1    
      sumday = grouped['DIAS'].sum()  
      day = sumday[numday]
  
      numberocons = grouped['CONSUMO'].size() &gt; 1 
      sumconsu = grouped['CONSUMO'].sum()    
      consu = sumconsu[numberocons]
  
  
      canu = (consu/day) * 365 
  
      Fdias = day.map('{:.0f}'.format)
      Fcanu = canu.replace('inf',0).map('{:.2f}'.format)
  </code></pre>
  
  <p>This code was working well when I had both python 2.7 and 3.5. This week I removed python 2.7 from my system and now I have this error:</p>
  
  <blockquote>
    <p>python: symbol lookup error:
    /usr/local/anaconda3/lib/python3.5/site-packages/numexpr/../../../libmkl_vml_avx.so:
    undefined symbol: mkl_serv_getenv</p>
  </blockquote>
  
  <p>I found that I've got the error in the following instruction:</p>
  
  <pre><code>canu = (consu/day) * 365 #Anual consumption
  </code></pre>
  
  <p>Why is this happening and any idea of how to fix it? </p>
  
  <p>I'm running on Python 3.5.1 | Anaconda 4.1.0 (64-bit)</p>