久久久久久久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.

                如何減小文件大小?

                我嘗試創(chuàng)建一個新的虛擬環(huán)境,但沒有任何改善,我也嘗試在我的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環(huán)境pyinstaller-env
                2. 使用 conda install conda-forge::numpy "blas=*=openblas"
                3. 安裝 numpy
                4. 將環(huán)境切換到 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模板網(wǎng)!

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

                相關文檔推薦

                How to bind a function to an Action from Qt menubar?(如何將函數(shù)綁定到 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` 構造函數(shù)有未知關鍵字 `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. 主站蜘蛛池模板: 欧美日日 | 日韩一区不卡 | 国产精品久久精品 | 亚洲一二三区在线观看 | 精品国产一区久久 | 黄色片在线观看网址 | 美女黄网 | 久久av一区二区三区 | 亚洲精品电影网在线观看 | 成人在线免费观看 | 欧美群妇大交群中文字幕 | 日韩一区三区 | 日韩视频在线免费观看 | 久久这里只有精品首页 | 国产一区二区三区高清 | 四虎永久免费在线 | 国产精品色 | 亚洲精品欧美一区二区三区 | 日韩精品在线播放 | 欧美色欧美亚洲另类七区 | 免费看国产片在线观看 | 久久夜夜 | 久久久av | 69堂永久69tangcom| 欧美一区二区免费在线 | 成人激情视频免费在线观看 | 中文字幕在线第一页 | 欧美日韩高清 | www.日韩系列 | 亚洲草草视频 | 伊人网综合在线 | 免费播放一级片 | 成人欧美一区二区三区在线播放 | 欧美一区二区三区视频 | 一级黄色日本片 | 久久久影院 | 天天草天天干天天 | 久久久久免费观看 | 一区二区久久电影 | 国内精品久久久久 | www.国产|