ubuntu - bz2 not available (/usr/bin/python older version, so am using /home/name/somedir for python -


my server has python older version(2.6~), have created separate dir installing latest python. have installed binary .

now, got error 'bz2 module not available'
got problem when installing django-celery.

it working system level python this:

/usr/bin/python:
python shell opens......
then, import bz2; works !!!

python (means, locally installed python, after source /venv/bin/activate)
in python shell, import bz2; says not available. can please make work local version( not global one).

resources found , tried :

importerror: no module named bz2 python 2.7.2

python's bz2 module not compiled default

a very similar question describes same problem zlib. in short, you'll need libbz2.so , headers in location python can find them. might need download bzip2 source code , compile/install in homedir well.


Comments

Popular posts from this blog

Delphi XE2 Indy10 udp client-server interchange using SendBuffer-ReceiveBuffer -

Qt ActiveX WMI QAxBase::dynamicCallHelper: ItemIndex(int): No such property in -

Enable autocomplete or intellisense in Atom editor for PHP -