Tuesday, July 13, 2010

Thrift Python Module Path Problem

By default, Thrift python module is installed under /usr/lib/python2.x/site-pacakges, if you went through the typical "./configure -> make -> make install" steps to install Thrift.

If your python cannot locate thrift module (e.g. you installed a newer version of Python like Python 2.7), you might add "export PYTHONPATH=/path/to/python/site-packages".

[tkang@neb005 py-impl]$ vi /etc/profile



# add following lines
export PYTHONPATH=/usr/lib/python2.7/site-packages

3 comments:

rose said...

I feel really happy to have seen your webpage and look forward to so many more entertaining times reading here. Thanks once more for all the details.

python training in bangalore|

Amar G said...

Thanks for sharing the information...
Best NodeJS Training in Bangalore
TOGAF Training in Bangalore

Amar G said...

Nice Blog Python Training in Bangalore