하지 않습니다하지만 난 오류 Beautifulsoup is not a module
수 :BeautifulSoup로 내가 다음 코드를 실행하려고 모듈
import urllib
from Beautifulsoup import BeautifulSoup
webpage = urlopen('http://en.wikipedia.org/wiki/Mathematics').read
patfinderTitle = re.compile('<title>(.#)</title>')
if __name__=='__main__': main()
, easy_install을 사용 , 2.7 파이썬, BeautifulSoup로 3.2. 1, 어떻게해야합니까?
- 당신이 대신'from bs4 import BeautifulSoup'을 사용하려고 했습니까? –
BeautifulSoup을 설치했습니다. ie easy_install BeautifulSoup. 제대로 설치되었습니다. 이제 어떻게해야합니까? –
@JonClements pypi 이름이'bs4'가 아닌'beautifulsoup4'이기 때문에 다소 혼란 스럽습니다. – SheetJS