IT관련/Python

Python 기본 라이브러리 설치하기(데이터 분석)

Sisi0210 2019. 12. 4. 16:09

Python을 본격적으로 공부하기에 앞서 데이터 분석에 필요한 기본적인 라이브러리를 설치하려고 한다.

 

1. numpy  = 데이터 분석 지원 라이브러리 (파이썬은 데이터를 행렬로 알기 때문에 처리가 필요) 

행렬이나 일반적으로 대규모 다차원 배열을 쉽게 처리 할 수 있도록 지원하는 파이썬 라이브러리이다. NumPy는 데이터 구조 외에도 수치 계산을 위해 효율적으로 구현된 기능을 제공한다.

출처 : 위키백과 https://ko.wikipedia.org/wiki/NumPy

 

2. pandas = 데이터 연결 라이브러리

In computer programming, pandas is a software library written for the Python programming language for data manipulation and analysis. In particular, it offers data structures and operations for manipulating numerical tables and time series. It is free software released under the three-clause BSD license.[2] The name is derived from the term "panel data", an econometrics term for data sets that include observations over multiple time periods for the same individuals.

출처 : 위키백과 https://en.wikipedia.org/wiki/Pandas_(software)

>> 데이터 조작 및 분석을 위해 Python 프로그래밍 언어로 작성된 소프트웨어 라이브러리 : 데이터 처리 시 필요

 

3. matplotlib = 차트 그리는 라이브러리

Matplotlib은 파이썬에서 매트랩과 유사한 그래프 표시를 가능케 하는 라이브러리다.

출처 : 위키백과 https://ko.wikipedia.org/wiki/Matplotlib

 

4. jupyter = 개발도구

웹 브라우저에서 파이썬 코드를 작성하고 실행해 볼 수 있는 개발도구

 

설치방법

1. cmd를 관리자 권한으로 실행

 

2. cmd에 입력

--기본 라이브러리 설치 : conda에서 제공
C:\Users\Adminstrator> conda install numpy
C:\Users\Adminstrator> conda install pandas
C:\Users\Adminstrator> conda install matplotlib

--pip로 별도 설치 : jupyter
C:\Users\Adminstrator> pip install jupyter

--필요하다면 추가
--conda update
C:\Users\Adminstrator> conda update conda

--pip upgrade
C:\Users\Adminstrator> python -m pip install --upgrade pip

[y/n]? 이 나오면 y를 입력해서 설치를 진행하면 된다.

 

* 간혹 tar 파일에 대해 재설치를 해야된다는 error가 뜬다면 miniconda 삭제 후 재설치 혹은 해당 파일을 삭제 후 재설치 하면 해결된다.

 

라이브러리 설치 끝!