簡體   English   中英

Python、PyQt5 和 MySql 上的 Windows 有解決方案嗎?

[英]Python, PyQt5, and MySql on Windows 10, is there a solution?

I have Python v3.9, PyQt5 v5.15, and MySql 8.1 installed on a Windows 10 64-Bit system and like many (many) others have been struggling with the well documented "QMYSQL driver not loaded" problem. 在過去的一周里,我已經閱讀了 30 多篇關於如何解決這個問題的文章,但我只是沒有到達那里。 MySql Python 連接器工作正常,我擔心的只是缺少 QMYSQL 功能。

有沒有人真的讓這個工作?

是否有特定的版本組合可以讓這 3 個工具在 Windows 上協同工作?


我的 Windows 路徑當前是:

PATH=C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Program Files\Microsoft VS Code\bin;C:\Program Files\nodejs\;C:\ProgramData\chocolatey\bin;C:\Program Files\Git\cmd;C:\Program Files\MySQL\MySQL Server 8.0\bin;C:\Program Files\Go\bin;C:\Users\bobse\AppData\Local\Programs\Python\Python39\Scripts\;c:\Users\bobse\AppData\Local\Programs\Python\Python39\;C:\Users\bobse\AppData\Local\Programs\Python\Python39\Scripts\;C:\Users\bobse\AppData\Local\Programs\Python\Python39\;C:\Program Files\MySQL\MySQL Shell 8.0\bin\;C:\Users\bobse\AppData\Local\Microsoft\WindowsApps;C:\Users\bobse\AppData\Roaming\npm;C:\Users\bobse\AppData\Local\GitHubDesktop\bin;C:\Users\bobse\go\bin;

我的部分問題是我不完全了解找不到哪些文件以及工具在哪里尋找它們。 我應該尋找什么以及我應該在哪里尋找它?

是的! 有答案! 可以辦到!

It took me 60 hours of my time and 7 days, but I have PyQt5, QtDesigner, Python 3.10, MySQL 8.0 all working and talking to each other on a Windows 10 system.

請注意,一旦我找到使它工作的人並從中發現我錯過的東西,我必須構建一個新的 Windows 10 系統並以正確的順序加載所有部件以使其工作。

主要部分是一組 Qt 庫,用於 MySQL 和 MariaDB 維護在“thecodemonkey86”ZE1ADBCBB92C622D0ABFZ6 站點1上。 如果您想了解詳細信息,請閱讀以下主題...

qt_mysql_driver 問題 29

https://github.com/thecodemonkey86/qt_mysql_driver/issues/29

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM