title: Cannot import pandas: ImportError: cannot import name 'ops'
body: <p>I am not able to import <code>pandas</code> in the conda environment <code>py35</code> in a virtual machine. I get this error in the notebook, I started getting this error after I conda force installed <code>tpot</code> package.</p>
  
  <p>After I conda force installed <code>tpot</code>, I conda force installed <code>pandas</code> again since I was getting another attribute error: </p>
  
  <blockquote>
    <p>AttributeError: module 'pandas' has no attribute 'core'</p>
  </blockquote>
  
  <p>and since then I've been getting this error when I try to import <code>pandas</code>.</p>
  
  <pre><code>&lt;ipython-input-1-7dd3504c366f&gt; in &lt;module&gt;()
  ----&gt; 1 import pandas as pd
  
  /anaconda/envs/py35/lib/python3.5/site-packages/pandas/__init__.py in &lt;module&gt;()
       40 import pandas.core.config_init
       41 
  ---&gt; 42 from pandas.core.api import *
       43 from pandas.core.sparse.api import *
       44 from pandas.stats.api import *
  
  /anaconda/envs/py35/lib/python3.5/site-packages/pandas/core/api.py in &lt;module&gt;()
        8 from pandas.core.dtypes.missing import isna, isnull, notna, notnull
        9 from pandas.core.categorical import Categorical
  ---&gt; 10 from pandas.core.groupby import Grouper
       11 from pandas.io.formats.format import set_eng_float_format
       12 from pandas.core.index import (Index, CategoricalIndex, Int64Index,
  
  /anaconda/envs/py35/lib/python3.5/site-packages/pandas/core/groupby.py in &lt;module&gt;()
       45 from pandas.core.base import (PandasObject, SelectionMixin, GroupByError,
       46                               DataError, SpecificationError)
  ---&gt; 47 from pandas.core.index import (Index, MultiIndex,
       48                                CategoricalIndex, _ensure_index)
       49 from pandas.core.categorical import Categorical
  
  /anaconda/envs/py35/lib/python3.5/site-packages/pandas/core/index.py in &lt;module&gt;()
        1 # flake8: noqa
  ----&gt; 2 from pandas.core.indexes.api import *
        3 from pandas.core.indexes.multi import _sparsify
  
  /anaconda/envs/py35/lib/python3.5/site-packages/pandas/core/indexes/api.py in &lt;module&gt;()
  ----&gt; 1 from pandas.core.indexes.base import (Index,
        2                                       _new_Index,
        3                                       _ensure_index,
        4                                       _ensure_index_from_sequences,
        5                                       _get_na_value,
  
  /anaconda/envs/py35/lib/python3.5/site-packages/pandas/core/indexes/base.py in &lt;module&gt;()
       57 import pandas.core.sorting as sorting
       58 from pandas.io.formats.printing import pprint_thing
  ---&gt; 59 from pandas.core.ops import _comp_method_OBJECT_ARRAY
       60 from pandas.core import strings, accessor
       61 from pandas.core.config import get_option
  
  /anaconda/envs/py35/lib/python3.5/site-packages/pandas/core/ops/__init__.py in &lt;module&gt;()
       12 import numpy as np
       13 
  ---&gt; 14 from pandas._libs import Timedelta, Timestamp, lib, ops as libops
       15 from pandas.errors import NullFrequencyError
       16 from pandas.util._decorators import Appender
  
  ImportError: cannot import name 'ops'``` 
  
  
  </code></pre>