chartbeat-labs / textacy

NLP, before and after spaCy
https://textacy.readthedocs.io
Other
2.21k stars 249 forks source link

ModuleNotFoundError: No module named '_lzma' #279

Closed giriannamalai closed 4 years ago

giriannamalai commented 5 years ago

I have installed and tried to import textacy /usr/local/lib/python3.7/lzma.py in 25 import io 26 import os ---> 27 from _lzma import * 28 from _lzma import _encode_filter_properties, _decode_filter_properties 29 import _compression

ModuleNotFoundError: No module named '_lzma'

OS: Ubuntu 16.04 x64 Python: 3.7.3

How do I resolve this? I too have "liblzma-dev" from the beginning too.

bdewilde commented 4 years ago

Hi @giriannamalai , that sounds like an issue with your Python installation, since lzma is in the standard library. Can you run import lzma in a regular Python repl?