python 3.5 升级 python3.6.9 遇到的坑

python 3.5 升级 python3.6.9 遇到的坑
1:提示python环境没有安装完毕
backports.lzma

pip3 install backports.lzma
whereis python 找到python3.6.9 的位置
打开
vim lzma.py
#from _lzma import *
#from _lzma import _encode_filter_properties, _decode_filter_properties


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

2:提示python 缺失_bz 。so
下载地址:https://kdocs.cn/l/sbo6ZrXJB?f=501[金山文档] _bz2.cpython-36m-x86_64-linux-gnu.so
3: 重装 gunicorn 卸载后在重装

你可能感兴趣的:(python)