推荐学习书目
› Learn Python the Hard Way
Python Sites
› PyPI - Python Package Index
› http://diveintopython.org/toc/index.html
› Pocoo
值得关注的项目
› PyPy
› Celery
› Jinja2
› Read the Docs
› gevent
› pyenv
› virtualenv
› Stackless Python
› Beautiful Soup
› 结巴中文分词
› Green Unicorn
› Sentry
› Shovel
› Pyflakes
› pytest
Python 编程
› pep8 Checker
Styles
› PEP 8
› Google Python Style Guide
› Code Style from The Hitchhiker's Guide
shinonome
V2EX  ›  Python

mac 的 chromedriver 安装遇到路径问题

  •  
  •   shinonome · Mar 19, 2022 · 2700 views
    This topic created in 1660 days ago, the information mentioned may be changed or developed.
    Chromedriver -v
    ChromeDriver 99.0.4844.17 (395f87df02eedda1d0e06d5ac0614b0eeb22a9e8-refs/branch-heads/4844@{#182})
    终端运行如下,然后在终端运行
    from selenium import webdriver

    brower = webdriver.Chrome()
    brower.get('https://www.google.com/')
    是没有报错的,但是在 pycharm 运行的话就会提示
    selenium.common.exceptions.WebDriverException: Message: 'chromedriver' executable needs to be in PATH.
    确确实实已经移动到 /usr/local/bin 了
    python 为 3.9 ,mac 为 12.3
    之前还正常打开的,今天尝试发现不行了
    2 replies  •  2022-03-22 09:52:23 +08:00
    supersu
        1
    supersu  
       Mar 19, 2022 via Android
    https://www.sharpgan.com/implement-lagou-crawler/ 看下我这个博客,里面有方法不用搞 path 变量~
    tisswb
        2
    tisswb  
       Mar 22, 2022
    介绍一个新朋友 playwright for python 有了他,舅子啊也不用折腾 webdriver 了
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2197 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 32ms · UTC 06:04 · PVG 14:04 · LAX 23:04 · JFK 02:04
    ♥ Do have faith in what you're doing.