Study/Python
[Python] OSError: [E050] Can't find model 'en_core_web_sm'. It doesn't seem to be a Python package or a valid path to a data directory. 에러 해결 방법 - Jupyter Notebook 주피터 노트북
IT파스칼
2023. 10. 19. 22:48
import spacy 를 사용하고 싶은데 자꾸 에러가 뜬다...
OSError: [E050] Can't find model 'en_core_web_sm'. It doesn't seem to be a Python package or a valid path to a data directory.
how to download python -m spacy download en in Jupyter
일단 이렇게 구글에 검색!
해결 방법
주피터 노트북에서 아래 코드 실행
conda install -c conda-forge spacy-model-en_core_web_lg
그럼 아래 처럼 성공 메세지가 나온다 yay!
그리고 커널 재시작!
그런데 반전
영어도 끝가지 읽자
에러가 en_core_web_lg
가 아니라 en_core_web_sm 였던 것.
다시 다운로드 고

conda install -c conda-forge spacy-model-en_core_web_sm
제발 에러 또 뜨지마라..

성공했당!
프로그래밍은 섬세하게..
https://anaconda.org/conda-forge/spacy-model-en_core_web_lg
Spacy Model En Core Web Lg :: Anaconda.org
Description Components: tok2vec, tagger, parser, senter, ner, attribute_ruler, lemmatizer.
anaconda.org