2014년 11월 24일 월요일

Python 3.4에 BeautifulSoup 4설치하기

XML이나 HTML 데이터를 쉽게 파싱할 수 있는 BeautifulSoup4 설치하는 방법입니다.

일단 ez_setup.py를 돌려서 pip등이 설치되어 있어야 됩니다.
도스창을 열어서 아래와 같은 명령을 실행합니다.
c:\python34\python.exe ez_setup.py

정상적으로 설치가 되었으면 이번에는  c:\Python34\Scripts폴더로 이동합니다. 여기에 설치된 pip나 easy_install을 통해 모듈들을 인터넷상에서 다운로드 받아서 설치할 수 있습니다.

C:\Python34\Scripts>pip install BeautifulSoup4
Downloading/unpacking BeautifulSoup4
  Running setup.py (path:C:\Users\jonathan\AppData\Local\Temp\pip_build_jonathan
\BeautifulSoup4\setup.py) egg_info for package BeautifulSoup4

Installing collected packages: BeautifulSoup4
  Running setup.py install for BeautifulSoup4
    Skipping implicit fixer: buffer
    Skipping implicit fixer: idioms
    Skipping implicit fixer: set_literal
    Skipping implicit fixer: ws_comma

Successfully installed BeautifulSoup4
Cleaning up...

C:\Python34\Scripts>

댓글 없음:

댓글 쓰기

참고: 블로그의 회원만 댓글을 작성할 수 있습니다.

일상생활에서 사용되는 로봇 - 중국

아직은 가격이 저렴하지 않고, 기술적인 한계도 있지만 일상으로 빠르게 로봇이 들어올 것 같습니다.  피지컬 AI는 올해가 새로운 해가 되겠죠. ㅎㅎ   https://www.youtube.com/watch?v=r6g37b6JxnE