问题如下:
解决方法:
sudo apt-get install -y libbz2-dev
find / -name _bz2.cpython*.so
拷贝库文件并根据自己使用的python版本改成相应的名字
cp /usr/lib/python3.6/lib-dynload/_bz2.cpython-36m-x86_64-linux-gnu.so /usr/local/dros/python/lib/python3.8/lib-dynload
mv /usr/local/dros/python/lib/python3.8/lib-dynload/_bz2.cpython-36m-x86_64-linux-gnu.so /usr/local/dros/python/lib/python3.8/lib-dynload/_bz2.cpython-38-x86_64-linux-gnu.so
问题解决
可能出现的其他问题:
pip install backports.lzma
apt-get install liblzma-dev -y
vim编辑 lzma.py 文件
try:
from _lzma import *
from _lzma import _encode_filter_properties, _decode_filter_properties
except ImportError:
from backports.lzma import *
from backports.lzma import _encode_filter_properties, _decode_filter_properties