Anaconda python executes a python file in directory when I import pandas
<p>This is a head scratcher.  I have a directory with Ipython notebooks and python code.  Somehow when I try to import pandas one of the pandas files attempts to execute, the execution causes the import to bomb.</p>

<pre><code>[path]$ python
Python 3.5.2 |Anaconda custom (64-bit)| (default, Jul  2 2016, 17:53:06)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-1)] on linux
Type "help", "copyright", "credits" or "license" for more information.
&gt;&gt;&gt; import pandas as pd
WARNING: No route found for IPv6 destination :: (no default route?). This affects only IPv6
Traceback (most recent call last):
  File "&lt;stdin&gt;", line 1, in &lt;module&gt;
  File "/usr/local/anaconda3/lib/python3.5/site-packages/pandas/__init__.py", line 13, in &lt;module&gt;
    __import__(dependency)
  File "/usr/local/anaconda3/lib/python3.5/site-packages/pytz/__init__.py", line 29, in &lt;module&gt;
    from pkg_resources import resource_stream
  File "&lt;frozen importlib._bootstrap&gt;", line 969, in _find_and_load
  File "&lt;frozen importlib._bootstrap&gt;", line 958, in _find_and_load_unlocked
  File "&lt;frozen importlib._bootstrap&gt;", line 664, in _load_unlocked
  File "&lt;frozen importlib._bootstrap&gt;", line 634, in _load_backward_compatible
  File "/usr/local/anaconda3/lib/python3.5/site-packages/setuptools-20.3-py3.5.egg/pkg_resources/__init__.py", line 71, in &lt;module&gt;
  File "path/parser.py", line 62, in &lt;module&gt;
    file_temp = sys.argv[1]
IndexError: list index out of range
</code></pre>

<p>Using Ipython instead of python works for some reason:</p>

<pre><code>[path]$ ipython
Python 3.5.2 |Anaconda custom (64-bit)| (default, Jul  2 2016, 17:53:06)
Type "copyright", "credits" or "license" for more information.

IPython 5.0.0 -- An enhanced Interactive Python.
?         -&gt; Introduction and overview of IPython's features.
%quickref -&gt; Quick reference.
help      -&gt; Python's own help system.
object?   -&gt; Details about 'object', use 'object??' for extra details.

In [1]: import pandas as pd

In [2]:
</code></pre>

<p>To add more weirdness I can not connect to any kernels using jupyter hub in this directory.</p>

<p>EDIT:  This appears to be a problem with importing pandas anywhere on this machine if there is a file called parser.py.  The problem does not happen on my laptop.  This machine has Anaconda my laptop does not.  I don't have a solution on how to fix the problem though.</p>