https://scv-life.tistory.com/31
[Mac OS] 애플M1 맥미니, 파이썬 개발 가상환경 설치/설정 하기
1. macOS 패키지 관리자 Homebrew 설치 Homebrew는 Apple(또는 Linux 시스템)에서 제공하지 않는 유용한 패키지 관리자를 설치합니다. 패키지 설치 스크립트 아래 스크립트를 커맨창에서 복붙하여 실행해
scv-life.tistory.com
mkvirtualenv studyCrawling
pip install selenium
chromedriver는 아래 3.1항처럼 보통 다운로드하여 설치합니다만, 맥에서는 패키지화되어 brew으로 설치하거나 또는 webdriver manager를 이용하여 설치가 가능합니다.
가능하다면 webdriver manager를 이용하여 사용하는 것을 추천드립니다.
https://chromedriver.chromium.org/downloads
ChromeDriver - WebDriver for Chrome - Downloads
Current Releases If you are using Chrome version 101, please download ChromeDriver 101.0.4951.15 If you are using Chrome version 100, please download ChromeDriver 100.0.4896.60 If you are using Chrome version 99, please download ChromeDriver 99.0.4844.51 F
chromedriver.chromium.org
selenium.common.exceptions.WebDriverException: Message: Service ./chromedriver/chromedriver unexpectedly exited. Status code was: -9
xattr -d com.apple.quarantine chromedriver
brew install --cask chromedriver
가장 관리가 편하고 에러를 줄일 수 있는 설치 방법입니다.
해당 방법으로 설치하여 관리해주는 것이 가장 편합니다.
pip install webdriver-manager
from selenium import webdriver from webdriver_manager.chrome import ChromeDriverManager driver = webdriver.Chrome(ChromeDriverManager().install())
레거시 vs 버츄얼 머신 vs 컨테이너기반시스템 (0) | 2022.07.13 |
---|---|
파이썬 엑셀데이터 불러오기 (0) | 2022.04.10 |
자바스크립트의 MutationOberver 에 대하여.. (0) | 2022.03.31 |
Git 초보분들을 위한 입문자료 (0) | 2022.03.29 |
[php] composer 오류 : Your lock file does not contain a compatible set of packages. Please run composer update. (0) | 2021.12.29 |
댓글 영역