UserWarning: Could not import the lzma module. Your installed Python is incomplete. > PYTHON 프로그래밍

본문 바로가기

PYTHON 프로그래밍

PYTHON 프로그래밍

9. UserWarning: Could not import the lzma module. Your installed Python i…

페이지 정보

작성자 관리자 댓글 0건 조회 7,005회 작성일 20-08-08 14:58

본문

9. UserWarning: Could not import the lzma module. Your installed Python i…

# python3 train1.py 


/usr/local/lib/python3.7/site-packages/pandas/compat/__init__.py:120: UserWarning: Could not import the lzma module. Your installed Python is incomplete. Attempting to use lzma compression will result in a RuntimeError.

  warnings.warn(msg)


라이브러리를 설치 후, Python을 다시 설치한다.

# yum install -y xz-devel 

# cd Python-3.7.8/

[root@localhost Python-3.7.8]# ./configure && make && make altinstall

# python3 train1.py  

실행하면 에러가 없어졌을 것이다.

Copyright © LEELAB.CO.KR. All rights reserved.