我是这样安装的:
1.Firstly, I have had installed anaconda and the corresponding spyder supports python3.7 2.I installed the latest selenium by using "pip install selenium" on cmd.exe 3.I used "pip -m install splinter" to install splinter0.8.0 4.I installed geckodriver from the github click here 5.I configurated the environment by getting the geckodriver.exe copied to the directory which includes fiefox.exe and get the path into the PATH of the computer 6.To this, the splinter could open firefox but always got some exceptions.. 7*.When I then opened the firefox with mouse clicking, the firefox started with page white. And no matter what I input into the search box, nothing happened. What's more, I found that the developer tools couldn't be opened. And all these cases happened when I started firefox through desktop shortcut. Interestingly, when I started it in its directory which it's originally at, the firefox could work. But in this case when I open a new blank page, it didn't work too...太让人困惑了!感谢您的帮助!
发布于 2018-06-03 10:20:01
原因可能是计算机已经工作了很长时间,如果您完全关闭并重新启动它,Firefox可能会重新启动。(也可能是因为Win10需要放松)。如果这不起作用,我推荐chromedriver。
https://stackoverflow.com/questions/50393327
复制相似问题