久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

  • <legend id='hBddd'><style id='hBddd'><dir id='hBddd'><q id='hBddd'></q></dir></style></legend>
    • <bdo id='hBddd'></bdo><ul id='hBddd'></ul>

    <small id='hBddd'></small><noframes id='hBddd'>

  • <tfoot id='hBddd'></tfoot>
  • <i id='hBddd'><tr id='hBddd'><dt id='hBddd'><q id='hBddd'><span id='hBddd'><b id='hBddd'><form id='hBddd'><ins id='hBddd'></ins><ul id='hBddd'></ul><sub id='hBddd'></sub></form><legend id='hBddd'></legend><bdo id='hBddd'><pre id='hBddd'><center id='hBddd'></center></pre></bdo></b><th id='hBddd'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='hBddd'><tfoot id='hBddd'></tfoot><dl id='hBddd'><fieldset id='hBddd'></fieldset></dl></div>

        如何在 pyinstaller 中包含 chromedriver?

        How to include chromedriver with pyinstaller?(如何在 pyinstaller 中包含 chromedriver?)
        <legend id='oIjLV'><style id='oIjLV'><dir id='oIjLV'><q id='oIjLV'></q></dir></style></legend>
      1. <i id='oIjLV'><tr id='oIjLV'><dt id='oIjLV'><q id='oIjLV'><span id='oIjLV'><b id='oIjLV'><form id='oIjLV'><ins id='oIjLV'></ins><ul id='oIjLV'></ul><sub id='oIjLV'></sub></form><legend id='oIjLV'></legend><bdo id='oIjLV'><pre id='oIjLV'><center id='oIjLV'></center></pre></bdo></b><th id='oIjLV'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='oIjLV'><tfoot id='oIjLV'></tfoot><dl id='oIjLV'><fieldset id='oIjLV'></fieldset></dl></div>

          <tbody id='oIjLV'></tbody>

              • <bdo id='oIjLV'></bdo><ul id='oIjLV'></ul>
                <tfoot id='oIjLV'></tfoot>

                  <small id='oIjLV'></small><noframes id='oIjLV'>

                • 本文介紹了如何在 pyinstaller 中包含 chromedriver?的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學(xué)習(xí)吧!

                  問題描述

                  我正在使用 pyinstaller 創(chuàng)建我的 python 腳本的可執(zhí)行文件.
                  在腳本中我使用了這些導(dǎo)入:

                  I am using pyinstaller to create an executable of my python script.
                  In the script I'm using these imports:

                  from selenium import webdriver
                  from selenium.webdriver.chrome.options import Options
                  etc...
                  

                  問題是,當(dāng)運行 pyinstaller myscript.py 時,會導(dǎo)致包含 Firefox,而不是 Chrome.結(jié)果文件夾 c:...distmyscriptseleniumwebdriver 有一個 firefox 文件夾,所以它只是跳過了 chromedriver,這對我來說是一個嚴(yán)重的問題,因為腳本需要與 Chrome 一起運行.
                  圍繞這個主題只有幾個問題,但沒有解決問題的答案.
                  我正在考慮將 --hidden-import MODULENAME 標(biāo)簽添加到命令中,但 chromedriver.exe 不是模塊...謝謝

                  The problem is, when running pyinstaller myscript.py , it will result in including Firefox, instead of Chrome. In the result folder c:...distmyscriptseleniumwebdriver there is a firefox folder, so it is simply skipping chromedriver, and it is a serious problem for me, because the script needs to run with Chrome.
                  There is only a few questions around this topic, but there is no answer to solve the issue.
                  I was thinking on adding the --hidden-import MODULENAME tag to the command, but chromedriver.exe is not a module... Thanks

                  推薦答案

                  應(yīng)該添加為二進制文件,因為是二進制文件...
                  因此,需要一個自定義規(guī)范文件,其中應(yīng)該定義本地系統(tǒng)上 chromedriver 的路徑以及相對于 distmyscript 的所需位置,因此它看起來像這樣:

                  It should be added as a binary file, since it is a binary file...
                  So a custom spec file needed where the chromedriver's path on the local system and the desired location relative to the distmyscript should be defined, so it looks something like this:

                  .....
                  a = Analysis(['myscript.py'],
                               pathex=['path\to\my\script'],
                               binaries=[ ('path\to\my\chromedriver.exe', '.\selenium\webdriver') ],
                               datas=None,
                  ....
                  

                  然后使用這個規(guī)范文件運行 pyinstaller:pyinstaller myscript.spec myscript.py

                  And then run the pyinstaller with this spec file: pyinstaller myscript.spec myscript.py

                  這篇關(guān)于如何在 pyinstaller 中包含 chromedriver?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

                  【網(wǎng)站聲明】本站部分內(nèi)容來源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問題,如果有圖片或者內(nèi)容侵犯了您的權(quán)益,請聯(lián)系我們刪除處理,感謝您的支持!

                  相關(guān)文檔推薦

                  How to make a discord bot that gives roles in Python?(如何制作一個在 Python 中提供角色的不和諧機器人?)
                  Discord bot isn#39;t responding to commands(Discord 機器人沒有響應(yīng)命令)
                  Can you Get the quot;About mequot; feature on Discord bot#39;s? (Discord.py)(你能得到“關(guān)于我嗎?Discord 機器人的功能?(不和諧.py))
                  message.channel.id Discord PY(message.channel.id Discord PY)
                  How do I host my discord.py bot on heroku?(如何在 heroku 上托管我的 discord.py 機器人?)
                  discord.py - Automaticaly Change an Role Color(discord.py - 自動更改角色顏色)
                    <tbody id='VGXF2'></tbody>
                • <small id='VGXF2'></small><noframes id='VGXF2'>

                            <bdo id='VGXF2'></bdo><ul id='VGXF2'></ul>
                          • <legend id='VGXF2'><style id='VGXF2'><dir id='VGXF2'><q id='VGXF2'></q></dir></style></legend>
                            <i id='VGXF2'><tr id='VGXF2'><dt id='VGXF2'><q id='VGXF2'><span id='VGXF2'><b id='VGXF2'><form id='VGXF2'><ins id='VGXF2'></ins><ul id='VGXF2'></ul><sub id='VGXF2'></sub></form><legend id='VGXF2'></legend><bdo id='VGXF2'><pre id='VGXF2'><center id='VGXF2'></center></pre></bdo></b><th id='VGXF2'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='VGXF2'><tfoot id='VGXF2'></tfoot><dl id='VGXF2'><fieldset id='VGXF2'></fieldset></dl></div>

                            <tfoot id='VGXF2'></tfoot>
                            主站蜘蛛池模板: 成人欧美一区二区 | 亚洲国产精品一区二区www | 2018中文字幕第一页 | 青青草一区 | 91手机精品视频 | 激情一区 | 精品视频在线观看 | 久久久婷| 日本aa毛片a级毛片免费观看 | 免费亚洲成人 | 亚洲精品1 | 黄色大片网站 | 欧美一区不卡 | 亚洲一区二区三区四区五区中文 | 久久99精品久久久久久噜噜 | 欧洲精品在线观看 | 精品国产欧美 | а_天堂中文最新版地址 | 在线一区 | 综合激情久久 | 国产成人精品a视频一区www | 亚洲va国产日韩欧美精品色婷婷 | 国产精品久久久久一区二区三区 | 不卡一区| 中文字幕在线观看一区 | a级在线观看 | 91精品国产91 | 国产成人精品一区二区 | h视频免费观看 | 亚洲欧美在线视频 | 7777在线视频| 精品福利视频一区二区三区 | 亚洲欧美精品在线观看 | 成人精品一区二区三区中文字幕 | 欧美中文字幕一区二区 | 国产欧美日韩综合精品一区二区 | 久久精品欧美视频 | 欧美日韩高清免费 | 国产福利在线播放 | 欧美一区二区三区视频 | 国产人成精品一区二区三 |