title: pandas-compat: 'import pandas' gives AttributeError: module 'pandas' has no attribute 'compat'
body: <pre><code>&gt;&gt;&gt; import pandas
  Traceback (most recent call last):
    File "&lt;pyshell#8&gt;", line 1, in &lt;module&gt;
  import pandas
   File 
  "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-
  packages/pandas/__init__.py", line 40, in &lt;module&gt;
      import pandas.core.config_init
  File 
  "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-
  packages/pandas/core/config_init.py", line 14, in &lt;module&gt;
      import pandas.core.config as cf
  File 
  "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-
  packages/pandas/core/config.py", line 57, in &lt;module&gt;
     import pandas.compat as compat
  AttributeError: module 'pandas' has no attribute 'compat'
  </code></pre>
  
  <p>I know that there are a lot of other similar questions but none have helped. I have tried reinstalling pandas:</p>
  
  <pre><code>sudo pip3 uninstall pandas
  sudo pip3 install pandas
  </code></pre>
  
  <p>I have also ensured that I've added the following to my bash profile:</p>
  
  <pre><code>export LC_ALL=en_US.UTF-8
  export LANG=en_US.UTF-8
  </code></pre>