How to put geckodriver into PATH? [duplicate]

做~自己de王妃 提交于 2019-11-27 14:07:27

I faced this same problem and here's how I fixed it:

  1. Download the geckodriver from here
  2. Extract and unzip and move the geckodriver file to /usr/local/bin/ directory
  3. Run python program with selenium Firefox webdriver.

This answer can be easily solved by a google search for "add program to path"

export PATH=$PATH:/path/to/geckodriver

"I have geckodriver copied everywhere in my Python folders." Ensure the geckodriver executable is found in one of the paths when you run:

import sys
print sys.path

And the problem should be resolved.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!