anushanram
anushanram

Reputation: 1

ImportError: No module named '_bz2'

I am trying to run Python3 application in linux server. Application breaks when it tries to use Pandas library. I have tried the solution in No module named '_bz2' in python3 But it gives me No package libbz2-dev available. And also this solution missing python bz2 module Could you please help me with this.

Python environment is,

Thanks

Upvotes: 0

Views: 2659

Answers (1)

haoran920
haoran920

Reputation: 27

Probably as you built python from source, you don't have bz2 headers.

Install them on Ubuntu/Debian:

sudo apt-get install libbz2-dev

centos\Fedora:

sudo yum install bzip2-devel

And build python again.

Upvotes: 1

Related Questions