728x90

사이킷런(Scikit-Learn) 라이브러리 설치하기

들어가며

  • 사이킷런(Scikit-Learn) 라이브러리를 설치하는 방법을 알아보자.

 

방법

> pip install sklearn
> pip install scikit-learn

 

ModuleNotFoundError: No module named 'sklearn' 이슈 해결하기

  • 사이킷런 라이브러리가 설치되지 않아서 발생하는 에러이다.
  • 하지만, 아나콘다 가상 환경에서 사이킷런 라이브러리를 설치해도 뜨는 경우가 있다. 이때는 @-u@(@--upgrade@) 옵션을 넣어주고 다시 설치해주면 된다.
> pip install -U scikit-learn
> pip3 install -U scikit-learn

 

참고 사이트

 

Installing scikit-learn

There are different ways to install scikit-learn: Install the latest official release. This is the best approach for most users. It will provide a stable version and pre-built packages are availabl...

scikit-learn.org

728x90