관리 메뉴

개발 노트

파이썬 오류 해결 방법 : pip install BeautifulSoup : Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output. 본문

인턴 앱 개발 : 20.07.06~08.31/Crawling : Python

파이썬 오류 해결 방법 : pip install BeautifulSoup : Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

hayoung.dev 2020. 8. 6. 17:05

pip install BeautifulSoup를 했을 때 오류 발생

 

ERROR: Command errored out with exit status 1: command: 'C:\Users\HM4\anaconda3\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\HM4\\AppData\\Local\\Temp\\pip-install-3wq06y21\\BeautifulSoup\\setup.py'"'"'; __file__='"'"'C:\\Users\\HM4\\AppData\\Local\\Temp\\pip-install-3wq06y21\\BeautifulSoup\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\HM4\AppData\Local\Temp\pip-install-3wq06y21\BeautifulSoup\pip-egg-info' cwd: C:\Users\HM4\AppData\Local\Temp\pip-install-3wq06y21\BeautifulSoup\ Complete output (6 lines): Traceback (most recent call last): File "<string>", line 1, in <module> File "C:\Users\HM4\AppData\Local\Temp\pip-install-3wq06y21\BeautifulSoup\setup.py", line 3 "You're trying to run a very old release of Beautiful Soup under Python 3. This will not work."<>"Please use Beautiful Soup 4, available through the pip package 'beautifulsoup4'." ^ SyntaxError: invalid syntax ---------------------------------------- ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

 

 

BeautifulSoup 뒤에 버전 4를 입력해야 함.

pip install BeautifulSoup4

 

위 캡쳐본과 같이

In [1]에 오류가 났지만

In [2]에서 BeautifulSoup 뒤에 4를 붙이고 오류가 해결된 것을 볼 수 있다.

반응형