linux服务器上运行python代码时,报 ModuleNotFoundError:No module named '_bz2’
解决方法:
- 运行命令
yum install bzip2-devel
- 到python安装文件中configure文件同级路径 ./configure
- 运行命令
make
make install
linux服务器上运行python代码时,报 ModuleNotFoundError:No module named '_bz2’
解决方法:
yum install bzip2-devel
make
make install