에러해결/PYTHON

ImportError: Missing optional dependency 'xlrd'. Install xlrd >= 2.0.1 for xls Excel support Use pip or conda to install xlrd.

Zziii 2024. 4. 3. 09:52
728x90
반응형

이 오류 메시지는 xlrd 라이브러리가 설치되어 있지 않거나 지원되는 버전이 설치되어 있지 않음을 나타낸다.

xlrd는 Python에서 .xls 형식의 Excel 파일을 읽기 위해 사용되는 라이브러리인데 이 라이브러리가 없으면 .xls 파일을 읽을 수 없다.

 

오류 메시지에 따라, xlrd 버전 2.0.1 이상이 필요하므로 Python 환경에 xlrd를 설치하려면 다음 명령어 중 하나를 사용하여 설치한다.

 

pip을 사용하는 경우 :

pip install xlrd>=2.0.1

 

conda를 사용하는 경우 :

conda install -c anaconda xlrd

 

728x90
반응형
let textNodes = document.querySelectorAll("div.tt_article_useless_p_margin.contents_style > *:not(figure):not(pre)"); textNodes.forEach(function(a) { a.innerHTML = a.innerHTML.replace(/`(.*?)`/g, '$1'); });