擅长:python、mysql、java
<p>请确保您已经下载了<a href="https://github.com/mozilla/geckodriver/releases/tag/v0.11.1" rel="nofollow noreferrer">GeckoDriver for win-64 bit</a>,因为您有64位计算机。现在复制粘贴下载的GeckoDriver可执行文件在'Script'文件夹中(这个文件夹位于系统中安装python的根文件夹中)。现在在环境变量中设置python根文件夹和“Script”文件夹的路径</p>
<pre><code>C:\..Python; //path of python root folder
C:\..Python\Scripts; //path of python 'Script' folder
</code></pre>
<p><a href="https://i.stack.imgur.com/5KkkO.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/5KkkO.png" alt="enter image description here"/></a></p>
<p>别忘了重新启动系统以使更改生效&请尝试以下示例代码</p>
^{pr2}$