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

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

  1. <small id='zFgQo'></small><noframes id='zFgQo'>

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

      macOS Big Sur 11.0.1 上未彈出應(yīng)用程序

      Apps not popping up on macOS Big Sur 11.0.1(macOS Big Sur 11.0.1 上未彈出應(yīng)用程序)
        <legend id='5u33b'><style id='5u33b'><dir id='5u33b'><q id='5u33b'></q></dir></style></legend>

        <tfoot id='5u33b'></tfoot>

          <small id='5u33b'></small><noframes id='5u33b'>

            <i id='5u33b'><tr id='5u33b'><dt id='5u33b'><q id='5u33b'><span id='5u33b'><b id='5u33b'><form id='5u33b'><ins id='5u33b'></ins><ul id='5u33b'></ul><sub id='5u33b'></sub></form><legend id='5u33b'></legend><bdo id='5u33b'><pre id='5u33b'><center id='5u33b'></center></pre></bdo></b><th id='5u33b'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='5u33b'><tfoot id='5u33b'></tfoot><dl id='5u33b'><fieldset id='5u33b'></fieldset></dl></div>
              • <bdo id='5u33b'></bdo><ul id='5u33b'></ul>
                  <tbody id='5u33b'></tbody>
                本文介紹了macOS Big Sur 11.0.1 上未彈出應(yīng)用程序的處理方法,對(duì)大家解決問(wèn)題具有一定的參考價(jià)值,需要的朋友們下面隨著小編來(lái)一起學(xué)習(xí)吧!

                問(wèn)題描述

                升級(jí)操作系統(tǒng)總是有風(fēng)險(xiǎn)的.您可能會(huì)遇到一些兼容性問(wèn)題.我冒險(xiǎn)將我的 macOS 從 Catalina 升級(jí)到最新的 Big Sur.在那之后,新操作系統(tǒng)中的顯示看起來(lái)很漂亮,但是我所有的 PyQt5 應(yīng)用程序都無(wú)法在這個(gè)新操作系統(tǒng)中啟動(dòng).GUI 窗口沒(méi)有像往常一樣彈出,并且終端中沒(méi)有顯示錯(cuò)誤消息.我花了一整天的時(shí)間試圖弄清楚是什么導(dǎo)致了這個(gè)問(wèn)題.我找到了解決方案,但以一種奇怪的方式讓我感到困惑.

                It is always risky to upgrade your operation system. It is likely you will encounter some compatibility issue. I took the risk to upgrade my macOS from Catalina to the newest Big Sur. After that, the display in the new OS looks pretty, but all my PyQt5 apps could not be launched in this new OS. The GUI window does not pop up as usual, and there is no error message showing in the terminal. I spent the whole day trying to figure out what makes this problem. I found the solution but in a weird way which I feel confused.

                我在主腳本中添加以下三行后,應(yīng)用程序恢復(fù)正常.

                It turns out that the apps comes back to normal after I add the following three lines in the main script.

                import matplotlib
                import matplotlib.pyplot as plt
                
                matplotlib.use('TkAgg')
                

                在我看來(lái),新操作系統(tǒng)與 Qt5Agg 后端存在一些兼容性問(wèn)題.但奇怪的是,這個(gè)解決方案也適用于其中一個(gè) Pyqt5 應(yīng)用程序,我根本不使用 matplotlib.

                It seems to me the new OS has some compatibility issue with Qt5Agg back-end. But the strange thing is that this solution also works for one of the Pyqt5 app, where I don't use matplotlib at all.

                我使用的Python版本是3.8.4,我的PyQt5版本是5.15.1.

                The Python version I used is 3.8.4, and the PyQt5 version I have is 5.15.1.

                我希望有人可以向我解釋使該解決方案起作用的幕后情況.我也希望這個(gè)臨時(shí)解決方案可以幫助有同樣問(wèn)題的人.

                I hope somebody could explain to me what happen under the hood that makes this solution work. Also I hope this temporary solution can help somebody with the same problem.

                推薦答案

                回復(fù) PyQt 郵件列表指出設(shè)置這個(gè) env var 有效:

                A reply to the PyQt mailing list pointed out that setting this env var works:

                QT_MAC_WANTS_LAYER=1
                

                通過(guò) 是否有任何關(guān)于 PyQt 庫(kù)在 Mac OS Big Sur 中不起作用的解決方案? 和 https://forums.macrumors.com/threads/pyqt5-and-big-sur.2260773/?post=29243620#post-29243620

                這篇關(guān)于macOS Big Sur 11.0.1 上未彈出應(yīng)用程序的文章就介紹到這了,希望我們推薦的答案對(duì)大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

                【網(wǎng)站聲明】本站部分內(nèi)容來(lái)源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問(wèn)題,如果有圖片或者內(nèi)容侵犯了您的權(quán)益,請(qǐng)聯(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 啟動(dòng)后進(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)我向左或向右滾動(dòng)時(shí),yaxis 刻度標(biāo)簽應(yīng)該可見(jiàn)
                `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時(shí)顯示進(jìn)度條?)

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

                    <tbody id='c6gdh'></tbody>
                    1. <legend id='c6gdh'><style id='c6gdh'><dir id='c6gdh'><q id='c6gdh'></q></dir></style></legend><tfoot id='c6gdh'></tfoot>

                        • <bdo id='c6gdh'></bdo><ul id='c6gdh'></ul>
                          主站蜘蛛池模板: 亚洲欧美激情视频 | 毛片免费看 | 精品国产一区二区在线 | 99av成人精品国语自产拍 | 91精品国产92 | 日韩欧美精品一区 | 日韩图区 | 国产精品美女久久久久aⅴ国产馆 | 国产特一级黄色片 | 黄色一级电影免费观看 | 日韩高清国产一区在线 | 日韩视频专区 | 麻豆91av| 久久精品99 | 蜜月va乱码一区二区三区 | 99re在线| 性一交一乱一伦视频免费观看 | 久久精品国产久精国产 | 免费观看日韩av | h在线免费观看 | 在线国产视频 | 亚洲国产精品一区二区第一页 | 99re6在线| 精品国产成人 | 国产精品久久久久久久久久久新郎 | 一级毛片视频 | 麻豆视频国产在线观看 | 国内精品视频 | 精品免费国产一区二区三区 | 一区天堂 | 亚洲精品自拍 | 日韩精品在线一区 | 在线免费观看视频你懂的 | 久久久久久久久中文字幕 | 亚洲高清av | 欧洲亚洲视频 | 久久99视频精品 | 五月婷六月丁香 | 久久专区| 亚洲看片 | 亚洲精品www |