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

    <legend id='xUCQT'><style id='xUCQT'><dir id='xUCQT'><q id='xUCQT'></q></dir></style></legend>
    <tfoot id='xUCQT'></tfoot>
  1. <small id='xUCQT'></small><noframes id='xUCQT'>

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

      使用 pyinstaller 將 pyqt 構建為 exe 后文件大小較大

      Large file size after building pyqt to exe with pyinstaller(使用 pyinstaller 將 pyqt 構建為 exe 后文件大小較大)

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

                本文介紹了使用 pyinstaller 將 pyqt 構建為 exe 后文件大小較大的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                問題描述

                以下代碼是我在pyqt小部件中使用的模塊,但是在我使用pyinstaller構建exe文件后,文件大小為233MB.

                The following code is the module I used in my pyqt widget, but after I use pyinstaller to build exe file, the file size is 233MB large.

                如何減小文件大小?

                我嘗試創建一個新的虛擬環境,但沒有任何改善,我也嘗試在我的pyinstaller spec<中添加excludes=['mkl','whl']/code> 文件,但也沒有改進.

                I tried to create a new virtual environment, but there is no improvement, and I also tried to add excludes=['mkl','whl'] in my pyinstaller spec file, but no improve as well.

                from PyQt5.QtWidgets import QMainWindow, QMessageBox, QApplication, QFileDialog
                from PyQt5.QtGui import QIcon, QPixmap
                from PyQt5.QtCore import Qt, pyqtSignal, QEvent
                import sys
                from glob import glob
                from numpy import array as nparray
                from PIL.Image import open as imopen
                from win32gui import GetWindowText, GetForegroundWindow
                from MainWindow import Ui_MainWindow, resource_path
                from qimage2ndarray import array2qimage
                from shutil import move
                from os import makedirs, chdir, getcwd
                from os import path as ospath
                

                MainWindow是我用qtdesigner構建的UI代碼,它使用的模塊是:

                MainWindow is the UI code I build with qtdesigner, the module it use is :

                from PyQt5.QtWidgets import QWidget, QLabel, QPushButton, QStatusBar
                from PyQt5.QtCore import QRect, Qt, QSize, QMetaObject, QCoreApplication
                from PyQt5.QtGui import QFont, QIcon, QPixmap
                import sys
                from os.path import join, abspath
                

                推薦答案

                最后我通過提供的解決方案將我的 exe 文件大小從 233MB 減少到 64MB 這里 :

                Finally I reduce my exe file size from 233MB to 64MB by solution provided here :

                1. 新建conda環境pyinstaller-env
                2. 使用 conda install conda-forge::numpy "blas=*=openblas"
                3. 安裝 numpy
                4. 將環境切換到 pyinstaller-env 并打包我的 QT 應用程序.
                1. Create a new conda environment pyinstaller-env
                2. install numpy with conda install conda-forge::numpy "blas=*=openblas"
                3. Switch environment to pyinstaller-env and package my QT application.

                這篇關于使用 pyinstaller 將 pyqt 構建為 exe 后文件大小較大的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

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

                相關文檔推薦

                How to bind a function to an Action from Qt menubar?(如何將函數綁定到 Qt 菜單欄中的操作?)
                PyQt progress jumps to 100% after it starts(PyQt 啟動后進度躍升至 100%)
                How to set yaxis tick label in a fixed position so that when i scroll left or right the yaxis tick label should be visible?(如何將 yaxis 刻度標簽設置在固定位置,以便當我向左或向右滾動時,yaxis 刻度標簽應該可見
                `QImage` constructor has unknown keyword `data`(`QImage` 構造函數有未知關鍵字 `data`)
                Change x-axis ticks to custom strings(將 x 軸刻度更改為自定義字符串)
                How to show progress bar while saving file to excel in python?(如何在python中將文件保存為excel時顯示進度條?)
                  <tbody id='SoEUs'></tbody>

                • <small id='SoEUs'></small><noframes id='SoEUs'>

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

                      <tfoot id='SoEUs'></tfoot>

                        1. 主站蜘蛛池模板: 国产黄色精品 | 91精品久久久久久久久 | a毛片大片 | 国产精品一区二区在线播放 | 欧美一级欧美三级 | 国产一级片在线 | 亚洲高清在线视频 | 日韩三级免费 | 欧美在线视频一区二区 | 日韩伊人 | 在线免费观看黄色片 | 日韩欧美视频一区 | 一级片观看| 久久精品99久久久久久 | 一级片av| 欧美激情视频一区二区三区 | 九九国产 | 日韩成人一区 | h视频免费在线观看 | 久久99热这里只频精品6学生 | 国产剧情在线 | 国产日韩精品在线 | 成人免费网站黄 | 日韩天天操 | 国产二区视频在线观看 | 色婷婷导航 | 欧美精品第一页 | 天天综合天天 | 91桃色网站 | 日韩成人片 | 伊人色播| 国产精品一区在线观看 | 欧美大白屁股 | 五月天色综合 | 成人特级毛片 | 一级看片免费视频 | 欧美性爽 | 日韩精品久久久久久免费 | 天天干天天操天天摸 | 夜夜骑天天干 | 在线一区二区三区 |