와 충돌이 나는 명령을 BeautifulSoup로 설치 : 나는 BeautifulSoup로 lib 디렉토리를 가져 오기 위해 노력하고있어오류 - 파이썬 버전
Searching for BeautifulSoup4
Best match: beautifulsoup4 4.1.3
Processing beautifulsoup4-4.1.3-py2.6.egg
beautifulsoup4 4.1.3 is already the active version in easy-install.pth
Using /Library/Python/2.6/site-packages/beautifulsoup4-4.1.3-py2.6.egg
Processing dependencies for BeautifulSoup4
Finished processing dependencies for BeautifulSoup4
:
sudo easy_install BeautifulSoup4
내가 메시지를 받았습니다.
>>> from BeautifulSoup import BeautifulSoup
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named BeautifulSoup
나 :
>>> from bs4 import BeautifulSoup
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named bs4
내 파이썬 버전은 다음과 같습니다
python --version
Python 2.7.3
편집 이해
그 :
파이썬 버전간에 충돌이있을 수 있습니다.
어떻게이 모듈을 등록 할 수 있습니까? 감사합니다
당신의 질문에서이 줄은 당신에게 단서를 주어야한다 :'/ Library/Python/2.6/site-packages/beautifulsoup4-4.1.3-py2.6.egg' – root
시스템 파이썬은 2.7이지만 easy_install 설치 2.6 .... –
문제점을 이해합니다. 처음 easy_install을 업데이트해야합니까? – maxdangelo