Python
[CentOS] Python requests 모듈 설치
영은파더♥
2018. 12. 14. 14:52
[CentOS] Python requests 모듈 설치
파이썬에서 url 을 불러와서 파싱을 하려면 requests 모듈이 사용되는데 기본적으로 설치가 되어 있지 않으므로 설치해 주어야 합니다.
# python tistory-rss.py
Traceback (most recent call last):
File "example.py", line 2, in <module>
import requests
ImportError: No module named requests
아래 처럼 설치하면 됩니다.
# yum install python-pip
# pip install requests
반응형