'셀레니엄'에 해당되는 글 1건

 
  1. 2020.08.21 [MAC/PYTHON] 맥북에서 파이썬3 셀레니엄 설치, installing selenium on MacBook 3
2020. 8. 21. 23:59 DEV ENVIRONMENT
[MAC/PYTHON] 맥북에서 파이썬3 셀레니엄 설치, installing selenium on MacBook

웹브라우저를 제어하려고 셀레니엄을 설치하겠습니다.

 

pip명령어가 없는 분들은

https://blog.nachal.com/1530

참고하시고 pip 설치후에 selenium을 설치하시면 됩니다.

 

 

셀레니엄 설치

sudo pip3 install selenium
컴퓨터 비밀번호 입력

kaudo@MacBookPro ~ % sudo pip3 install selenium
WARNING: The directory '/Users/kaudo/Library/Caches/pip' or its parent directory is not owned or is not writable by the current user. The cache has been disabled. Check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Collecting selenium
  Downloading selenium-3.141.0-py2.py3-none-any.whl (904 kB)
     |████████████████████████████████| 904 kB 550 kB/s 
Requirement already satisfied: urllib3 in /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages (from selenium) (1.25.10)
Installing collected packages: selenium
Successfully installed selenium-3.141.0
kaudo@MacBookPro ~ % 

 

다른 블로그를 보고(특히 윈도우예제) pip로 인스톨하시는 분들이 있는데,

맥은 파이썬2버전이 원래 깔려있어서 pip3로 설치해야 합니다.

pip로 설치하면 제대로 작동하지 않을 수 있습니다.

 

 

파이썬2 셀레니엄 삭제

sudo pip uninstall selenium

 

 

파이썬3 셀레니엄 삭제

sudo pip3 uninstall selenium

kaudo@MacBookPro ~ % sudo pip uninstall selenium
WARNING: The directory '/Users/kaudo/Library/Caches/pip' or its parent directory is not owned or is not writable by the current user. The cache has been disabled. Check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Found existing installation: selenium 3.141.0
Uninstalling selenium-3.141.0:
  Would remove:
    /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/selenium-3.141.0.dist-info/*
    /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/selenium/*
Proceed (y/n)? y
  Successfully uninstalled selenium-3.141.0
kaudo@MacBookPro ~ % 

 

 

최근에 올라온 글

최근에 달린 댓글