Python、eclipse、mac都在努力让selenium正常工作

Python、eclipse、mac都在努力让selenium正常工作,python,eclipse,python-2.7,selenium,Python,Eclipse,Python 2.7,Selenium,我安装了selenium包,现在尝试在eclipse中运行它。它似乎导入良好,但它不会加载任何浏览器的webdriver。这就是它给出的错误 driver = webdriver.Firefox() File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/selenium-2.45.0-py2.7.egg/selenium/webdriver/firefox/webdriver.p

我安装了selenium包,现在尝试在eclipse中运行它。它似乎导入良好,但它不会加载任何浏览器的webdriver。这就是它给出的错误

driver = webdriver.Firefox()
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/selenium-2.45.0-py2.7.egg/selenium/webdriver/firefox/webdriver.py", line 59, in __init__
    self.binary, timeout),

  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/selenium-2.45.0-py2.7.egg/selenium/webdriver/firefox/extension_connection.py", line 47, in __init__
    self.binary.launch_browser(self.profile)

  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/selenium-2.45.0-py2.7.egg/selenium/webdriver/firefox/firefox_binary.py", line 65, in launch_browser
    self._start_from_profile_path(self.profile.path)

  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/selenium-2.45.0-py2.7.egg/selenium/webdriver/firefox/firefox_binary.py", line 88, in _start_from_profile_path
    env=self._firefox_env).communicate()

  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 710, in __init__
    errread, errwrite)

  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 1335, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory

我检查过了,文件夹和文件都在那里,所以我不知道发生了什么。任何帮助都将不胜感激。

您是否安装了firefox?@alecxe-oops!!!我觉得自己太笨了,我没有安装它。我没有意识到我需要这样做,因为我认为驱动程序将从selenium捆绑包中使用。谢谢你指出我的愚蠢!现在效果很好。