# Install xz-devel in centos and recompile it yum install xz-devel ./configure --enable-optimizations #install backports.lzma package pip install backports.lzma Modify python file # /usr/local/python3.x/lib/lzma.py Original: from _lzma import * from _lzma import _encode_filter_properties, _decode_filter_properties to: 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
Similar Posts:
- Python installs pandas library Error: Could not import the LZMA module appears when
- [Solved] Centos6: Python 2.6 upgrade to 3.7, error handling [no module named ‘_ctypes’]
- [Solved] docker-compose:No module named ssl_match_hostname; ImportError: No module named shutil_get_te…
- /lib64/libstdc++.so.6: version `CXXABI’1.3.8′ not found `36733;
- How to Solve pip3 ImportError: cannot import name ‘main’
- UnicodeEncodeError: ‘ascii’ codec can’t encode characters in position 0-1:
- Centos7.4 appears Yum command not found [How to Solve]
- Error reporting and resolution of Python 3 using binascii method
- [How to Solve] ImportError: No module named MySQLdb
- Python upgrade resulted in an error using yum