Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/318.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python selenium的FileNotFoundError_Python_Selenium - Fatal编程技术网

Python selenium的FileNotFoundError

Python selenium的FileNotFoundError,python,selenium,Python,Selenium,因此,我尝试模拟本页中的代码: 但我得到了这个错误: FileNotFoundError Traceback (most recent call last) c:\programdata\miniconda3\lib\site-packages\selenium\webdriver\common\service.py in start(self) 73

因此,我尝试模拟本页中的代码:

但我得到了这个错误:

FileNotFoundError                         Traceback (most recent call last)
c:\programdata\miniconda3\lib\site-packages\selenium\webdriver\common\service.py in start(self)
     73                                             close_fds=platform.system() != 'Windows',
---> 74                                             stdout=self.log_file, stderr=self.log_file)
     75         except TypeError:
有什么建议吗


我正在Jupyter笔记本中使用python 3.6

解决了!正如mhawke上面提到的,我需要安装geckodriver。但是在哪里安装呢

因为我使用的是Miniconda3,所以我只需下载geckodriver.exe并将其放入C:\ProgramData\Miniconda3文件夹


谢谢,mhawke。

您需要安装和配置geckodriver。看到和
FileNotFoundError                         Traceback (most recent call last)
c:\programdata\miniconda3\lib\site-packages\selenium\webdriver\common\service.py in start(self)
     73                                             close_fds=platform.system() != 'Windows',
---> 74                                             stdout=self.log_file, stderr=self.log_file)
     75         except TypeError: