taeyangk0331 / Secure-Code-Generator

MIT License
0 stars 0 forks source link

No module for _lzma problem #1

Open auto-code-etri opened 1 week ago

auto-code-etri commented 1 week ago

Solved like this way.

$ git clone git://github.com/peterjc/backports.lzma.git $ cd backports.lzma $ python setup.py install $ cd test $ python test_lzma.py

$pip install backports.lzma

$ cd /usr/local/lib/python3.10 (파이썬 3.10버전이 설치된 경우) $ sudo vi lzma.py 다음 2줄을 아래와 같이 변경 from _lzma import from _lzma import _encode_filter_properties, _decode_filter_properties ==> from backports.lzma import from backports.lzma import _encode_filter_properties, _decode_filter_properties 이렇게 조치후, import lzma를 수행하여 성공하면 완료