title: python: pytz package installation issue: ImportError: No module named pytz
body: <p>I installed the pytz package on my windows7 machine via:</p>
  
  <pre><code>C:\Users\name\Downloads\pytz&gt;easy_install --upgrade pytz
  Searching for pytz
  Reading http://pypi.python.org/simple/pytz/
  Reading http://pytz.sourceforge.net
  Reading http://sourceforge.net/project/showfiles.php?group_id=79122
  Reading http://www.stuartbishop.net/Software/pytz
  Reading http://sourceforge.net/projects/pytz/
  Best match: pytz 2013b
  Downloading http://pypi.python.org/packages/2.7/p/pytz/pytz-2013b-py2.7.egg#md5=7cfcc57ddb87125a042b70c03580d6cf
  Processing pytz-2013b-py2.7.egg
  Moving pytz-2013b-py2.7.egg to c:\python27\lib\site-packages
  Adding pytz 2013b to easy-install.pth file
  
  Installed c:\python27\lib\site-packages\pytz-2013b-py2.7.egg
  Processing dependencies for pytz
  Finished processing dependencies for pytz
  
  C:\Python27\Lib\site-packages&gt;dir
   Volume in drive C has no label.
   Volume Serial Number is 485C-3867
  </code></pre>
  
  <p>I checked that the .egg file is in the python27\lib\site-packages directory:</p>
  
  <pre><code> Directory of C:\Python27\Lib\site-packages
  
  04/05/2013  06:06 PM    &lt;DIR&gt;          .
  04/05/2013  06:06 PM    &lt;DIR&gt;          ..
  04/05/2013  06:06 PM               237 easy-install.pth
  09/20/2006  10:05 AM               126 easy_install.py
  04/05/2013  05:33 PM               312 easy_install.pyc
  04/05/2013  05:33 PM               312 easy_install.pyo
  10/19/2009  06:35 AM            85,435 pkg_resources.py
  04/05/2013  05:33 PM            90,779 pkg_resources.pyc
  04/05/2013  05:33 PM            90,779 pkg_resources.pyo
  04/05/2013  06:06 PM           521,259 pytz-2013b-py2.7.egg
  03/08/2011  10:39 AM               121 README.txt
  04/05/2013  05:33 PM    &lt;DIR&gt;          setuptools
  04/05/2013  05:33 PM    &lt;DIR&gt;          setuptools-0.6c11-py2.7.egg-info
  09/20/2006  10:05 AM             2,362 site.py
  04/05/2013  05:33 PM             1,719 site.pyc
  04/05/2013  05:33 PM             1,719 site.pyo
  04/05/2013  05:36 PM         1,784,796 sqlalchemy-0.8.0-py2.7.egg
  04/05/2013  05:27 PM    &lt;DIR&gt;          xlrd
  04/05/2013  05:27 PM               975 xlrd-0.7.3-py2.7.egg-info
  </code></pre>
  
  <p>But when I go to the python interpreter I get:</p>
  
  <pre><code>&gt;&gt;&gt;import pytz
  Traceback (most recent call last):
    File "&lt;console&gt;", line 1, in &lt;module&gt;
  ImportError: No module named pytz
  </code></pre>
  
  <p>When I open up a .py file in PyDev it claims that the <code>import pytz</code> statement is unresolved. It can't find the package.</p>
  
  <p>I would kindly appreciate some help. Thank you. </p>
  
  <p>*<em>EDIT *</em></p>
  
  <p>The contents of <code>easy_install.pth</code>:</p>
  
  <pre><code>import sys; sys.__plen = len(sys.path)
  ./sqlalchemy-0.8.0-py2.7.egg
  ./pytz-2013b-py2.7.egg
  import sys; new=sys.path[sys.__plen:]; del sys.path[sys.__plen:]; p=getattr(sys,'__egginsert',0); sys.path[p:p]=new; sys.__egginsert = p+len(new)
  </code></pre>
  
  <p>I removed the <code>./pytz-2013b-py2.7.egg</code> from the <code>easy_install.pth</code> file and tried <code>easy_install pytz</code>. This time it installed and I can <code>import pytz</code> without the error reported earlier (why would this fix the issue?). </p>
  
  <p>HOWEVER, my ecplise/pydev still does not seem to acknowledge the <code>import pytz</code> statement. It can't resolve it. It also can't resolve <code>import sqlalchemy</code> but the dos python interpreter can import both. The python interpreter in eclipse/pydev is set to <code>C:\Python27\python.exe</code> if you go to <code>Windows &gt; Preferences &gt; Interpreter - Python</code>.</p>
  
  <p>Interesting enough I had to check my interpreter configuration in the <em>project</em>. I just assumed that the project would know given the global settings. But I guess not.</p>
  
  <p>Now everything works. Thank you very much everyone. </p>