久久久久久久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 構(gòu)建為 exe 后文件大小較大

      Large file size after building pyqt to exe with pyinstaller(使用 pyinstaller 將 pyqt 構(gòu)建為 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 構(gòu)建為 exe 后文件大小較大的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學(xué)習(xí)吧!

                問題描述

                以下代碼是我在pyqt小部件中使用的模塊,但是在我使用pyinstaller構(gòu)建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> 文件,但也沒有改進(jìn).

                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構(gòu)建的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 應(yīng)用程序.
                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.

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

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

                相關(guān)文檔推薦

                How to bind a function to an Action from Qt menubar?(如何將函數(shù)綁定到 Qt 菜單欄中的操作?)
                PyQt progress jumps to 100% after it starts(PyQt 啟動后進(jìn)度躍升至 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 刻度標(biāo)簽設(shè)置在固定位置,以便當(dāng)我向左或向右滾動時,yaxis 刻度標(biāo)簽應(yīng)該可見
                `QImage` constructor has unknown keyword `data`(`QImage` 構(gòu)造函數(shù)有未知關(guān)鍵字 `data`)
                Change x-axis ticks to custom strings(將 x 軸刻度更改為自定義字符串)
                How to show progress bar while saving file to excel in python?(如何在python中將文件保存為excel時顯示進(jìn)度條?)
                  <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成人在线视频 | 欧美色视频免费 | 日日摸日日碰夜夜爽2015电影 | 久久99蜜桃综合影院免费观看 | www.4567| 亚洲精品国产综合区久久久久久久 | 欧美激情五月 | 九九久久在线看 | 久草.com| 亚洲日本欧美 | 久久精品国产v日韩v亚洲 | 美女国产 | 在线观看成年人视频 | 亚洲成a| 日本精品一区 | 在线观看成人小视频 | 久久成人综合 | 蜜桃免费一区二区三区 | 久久久久国产 | 国产精品福利在线观看 | 一区二区三区欧美 | 国产黄色在线观看 | 96国产精品久久久久aⅴ四区 | 三级在线免费观看 | 国产精品一二三区 | 99国产精品视频免费观看一公开 | 最新中文字幕第一页视频 | 精品成人av | 亚洲资源在线 | 欧美三级视频在线观看 | 高清人人天天夜夜曰狠狠狠狠 | 日韩欧美精品在线播放 | www.欧美视频 | 99久久久国产精品免费消防器 | 毛片av免费在线观看 | 91精品久久久 | 日韩在线高清 | 国产精品视频久久 | 7777在线视频免费播放 | 99久久精品免费看国产小宝寻花 |