title: Python 3.6 pandas import error from 'UserDict.py'
body: <p>I'm running Python 3.6.4, and am getting an import error from pandas. I'm installing it with 'pip install pandas' (which installs version 0.22). Installing it seems to go fine, but when I try to import it, an error gets thrown:</p>
  
  <pre><code>Python 3.6.4 (v3.6.4:d48eceb, Dec 19 2017, 06:54:40) [MSC v.1900 64 bit 
  (AMD64)] on win32
  Type "help", "copyright", "credits" or "license" for more information.
  &gt;&gt;&gt; import pandas
  Traceback (most recent call last):
    File "&lt;stdin&gt;", line 1, in &lt;module&gt;
    File "C:\Python36\lib\site-packages\pandas\__init__.py", line 13, in &lt;module&gt;
      __import__(dependency)
    File "C:\Python36\lib\site-packages\pytz\__init__.py", line 32, in &lt;module&gt;
       from pytz.lazy import LazyDict, LazyList, LazySet
    File "C:\Python36\lib\site-packages\pytz\lazy.py", line 3, in &lt;module&gt;
      from UserDict import DictMixin
    File "C:\Python36\lib\UserDict.py", line 167
      raise TypeError, "pop expected at most 2 arguments, got "\
  </code></pre>
  
  <p>Any help is much appreciated! Thank you!!</p>
  
  <p>Edit:
  Stephen pointed out that the root problem is pytz failing to import. Importing anything form pytz throws the same error. I've found one reference to the same error (<a href="http://www.smashcompany.com/technology/weird-that-under-python-3-4-runtime-you-can-import-from-2-7" rel="nofollow noreferrer">http://www.smashcompany.com/technology/weird-that-under-python-3-4-runtime-you-can-import-from-2-7</a>), which suggested an old path variable was the problem. I don't see any outdated python variables in my PATH, however. </p>