gensim使用报错ModuleNotFoundError: No module named ‘_bz2‘

Ubuntu安装:

sudo apt-get install libbz2-dev

Centos安装:

sudo yum install bzip2-devel 

进入python3目录重新编译python:

./configure
make && make install

你可能感兴趣的:(Web开发与部署,ubuntu,linux,运维)