title: ubuntu - bz2 not available (/usr/bin/python older version, so am using /home/name/somedir for python
body: <p>My server has python older version(2.6~), so I have created a separate dir for installing latest python. I have installed from binary . </p>
  
  <p>Now, got error that 'bz2 module is not available'<br>
  got this problem when installing django-celery.</p>
  
  <p>it is actually working from system level python like this:</p>
  
  <p>/usr/bin/python:<br>
  python shell opens......<br>
  then, import bz2; works !!!</p>
  
  <p>python (means, locally installed python, after source /venv/bin/activate)<br>
  in python shell, import bz2; says that it is not available.  Can you please make it work for my local version( not global one).   </p>
  
  <p>Resources I found and tried from :    </p>
  
  <p><a href="https://stackoverflow.com/questions/8115280/importerror-no-module-named-bz2-for-python-2-7-2">ImportError: No module named bz2 for Python 2.7.2</a></p>
  
  <p><a href="https://stackoverflow.com/questions/812781/pythons-bz2-module-not-compiled-by-default">Python&#39;s bz2 module not compiled by default</a></p>