擅长:python、mysql、java
<p>根据<a href="https://askubuntu.com/questions/539498/where-does-chromedriver-install-to">https://askubuntu.com/questions/539498/where-does-chromedriver-install-to</a>的建议,我可以这样做:</p>
<ol>
<li><p>安装铬铬驱动器:</p>
<pre><code>sudo apt-get install chromium-chromedriver
</code></pre></li>
<li><p>将路径添加到selenium行:</p>
<pre><code>driver = webdriver.Chrome("/usr/lib/chromium-browser/chromedriver")
</code></pre></li>
</ol>
<p>注意,这会打开铬而不是铬。希望能有所帮助。</p>