Ryu
  • 👩🏻‍💻 Ryu / software_engineer
  • ✨Resume
  • Python3
    • Python3 가상환경 설정하기
      • Python3 vs Python2
      • Pyenv
      • Venv
      • Pip
    • Flask
      • Flask 설치하기
      • API Server 만들기
    • REST API
    • Command Line 활용하기
    • Module 사용하기
      • Pickle - 자료형을 파일로 저장할 때
    • MongoDB connection
      • Pymongo
    • WSGI
      • 💡WSGI 가 필요한 이유
      • Web Server / WSGI / Middleware / Application 구조
      • WSGI Middleware 종류
      • Gunicorn
        • Gunicorn vs Uwsgi
    • Dockerize
      • 💡Dockerize 가 필요한 이유
      • 1. Create Dockerfile
        • Gunicorn 으로 nginx 와 app 연결하기
    • Kubernetes 로 배포하기
      • 💡Kubernetes 가 필요한 이유
      • Helm 사용하기
      • Helm 으로 k8s 에 앱 배포하기
  • Open Tracing (정리중)
    • Open Tracing 이란 무엇인가
    • Python OpenTracing Example
    • Jaeger, Jaeger UI
    • Python Jaeger Tutorial
    • Zipkin 알아보기
    • Jaeger-client 리스팅
  • Microservice Architecture
    • Netflix의 MSA 컨셉
      • ⚡️ MSA 를 도입할때 고려해야할 점들
  • Paper
    • Dynamo: Amazon’s Highly Available Key-value Store
      • 1. Introduction
      • 2. Background
      • 3. Related Work
        • Related Paper) Pastry, Chord
        • Byzantine Fault Tolerance
      • 4. System Architecture
        • 4.1 System Interface
        • 4.2 Partitioning
        • 4.3 Replication
        • Hash Function
  • Frontend
    • CommonJS 와 AMD
    • RequireJS
    • WebSocket
      • WebSocket vs Socket.io
      • polling vs long polling vs streaming
    • Vue.js
      • Vue.js 에서 WebSocket 사용하기
      • [프로젝트] Vue, Vuex, AntDesignVue 로 운영툴 만들기
    • React x Redux 로 프로젝트 만들기
      • 0. React, Redux 를 선택한 이유
      • 1. 프로젝트 생성하고 Webpack4 적용하기
      • 2. React 와 ReactDOM 적용하기
      • 3. Material UI 적용하기
  • Data Engineering
    • Spark
      • Spark 이란?
      • 각 데몬의 역할 Driver, Master, Worker
      • 장단점 / 함께사용하는 툴 / 사용 사례
  • Service Mesh (정리중)
    • RPC
    • gRPC - Python Server 만들기
      • step 2.
Powered by GitBook
On this page
  • Pip 이 무엇인가요? 😲
  • Pip2 vs Pip3
  • Pip 으로 package 설치하기 ⚒

Was this helpful?

  1. Python3
  2. Python3 가상환경 설정하기

Pip

Pip3 으로 Library 관리하기

Pip 이 무엇인가요? 😲

  • Python 패키지 설치 및 의존성 관리, 버전 관리 기능을 제공하는 도구입니다.

  • Python 3.x 부터는 기본으로 설치되어 있습니다.

Pip2 vs Pip3

  • Python3 의 pip3는 pip 명령어로 호출할 수 있습니다.

Pip version upgrade

$ sudo pip install -U pip

Pip 으로 package 설치하기 ⚒

Installation Example

$ pip install pymongo

Requirement 파일로 package list 관리하기

  • 현재 가상환경 (Python 환경) 에 설치된 모든 Library 를 조회하여 requirements.txt 파일로 만듭니다.

$ pip freeze > requirements.txt

📄requirements.txt Example

flask==1.0.2
openpyxl==2.5.6
mock==2.0.0
gunicorn==19.9.0
celery==4.1.0
redis==2.10.6
requests==2.19.1
pymongo==3.7.1

requirement 파일이 이미 있다면 ?

 $ pip install -r requirements.txt

.gitignore 에 추가하기

  • git 사용시 clone 받는 사람마다 다른 가상환경을 구축하여 사용할 것이므로, 생성한 env 디렉토리는 .gitignore 에 추가해줍니다.

$ touch .gitignore

📄.gitignore

env/

PreviousVenvNextFlask

Last updated 6 years ago

Was this helpful?