ÔÚѧϰ¼°Ê¹ÓÃseleniumÕâ¸öPython¿âʱÐèÒªÌرð×¢Ò⣬µ±ÏÂÔز¢°²×°ºÃseleniumºó£¬ÇÒÄÜʹÓÃimportµ¼Èë³É¹¦£¬µ«ÊÇÔÚʹÓÃwebdirver.Chorme()ʱ£¬È´ÌáʾPATH·¾¶Öв¢Ã»ÓÐchromedriver£¬±¨´íÐÅÏ¢ÈçÏ£º
selenium.common.exceptions.WebDriverException: Message: 'chromedriver' executable needs to be in PATH. Please see https://sites.google.com/a/chromium.org/chromedriver/home |
±¨´íÐÅÏ¢½ØͼÈçÏ£º
ÕâÖ÷ÒªÊÇÒòΪPython³ÌÐòÖ´ÐÐʱûÓÐChromeä¯ÀÀÆ÷Çý¶¯Îļþµ¼Öµģ¬½â¾öµÄ·½·¨Ò²¼òµ¥£¬ÄǾÍÊÇÏÂÔغÍ×Ô¼ºµÄChrome°æ±¾¶ÔÓ¦µÄchromedriver(Îҵİ汾ÊÇ72£¬ËùÒÔÏÂÔØÁË72.0.3626°æ±¾µÄchromedriver)¡£