你好,我有一个本地运行的网络爬虫,但是在使用Vagrant机器启动它并放到AWS EC2 Linux环境中时,我遇到了以下问题。
当我在Linux上测试它时,我能够直接下载Linux以及Firebug,并运行我的Selenium webdriver。在这种情况下,我正在编写一个包含必要安装内容的文件。然而,由于无法直接从命令行安装Firefox(以及Firebug),我遇到了困难。
这是我的工作人员错误的样子(在我安装了Firefox并在Linux上安装了它的情况下,在我的本地机器上运行得很好):
[worker] " Please specify the firefox binary location or install firefox")
[worker] RuntimeError: Could not find firefox in your system PATH. Please specify the firefox binary location or install firefox
我目前正在运行以下命令以创建正确的开发环境。我认为可以使用Mozmill来重新创建Firefox。有人遇到/解决过这个问题吗?
sudo easy_install pip
sudo pip install selenium
sudo pip install mozmill
我需要一个Firefox和Firebug的命令行安装方式。谢谢!
进展:
目前,我正在使用sudo apt-get install firefox
,我相信它可能有效。但是,如果没有让firebug和net export也能正常工作,我就无法测试它是否真正能够运行。我尝试了sudo apt-get install firebug
,但找不到该软件包。据说在这里可以工作:http://www.daveshuck.com/2008/05/06/firebug-with-firefox-3-in-ubuntu-hardy-heron/ ,但对我来说却不起作用?